2

I'm getting this error after downloading the .zip file:

Traceback (most recent call last):
  File "setup.py", line 15, in <module>
    from __init__ import __version__
  File "/Users/me/Downloads/gnuplot-py-1.8/__init__.py", line 164, in <module>
    from gp import GnuplotOpts, GnuplotProcess, test_persist
ImportError: cannot import name GnuplotOpts

I have gnuplot installed on my machine, if I type gnuplot on the terminal the gnuplot terminal pops up. I'm trying to call it with python and it's saying it's not installed. This may be a path issue, but I'm just trying to make sure EVERYTHING needed is installed. (Path recommendations would be appreciated too)

Mac 10.7 Lion

5
  • try importing just Gnuplot. Commented Jul 4, 2013 at 5:43
  • Tried that too. Got No module named Gnuplot as an error. Commented Jul 4, 2013 at 5:45
  • 1
    try installing it by :- pip install prdownloads.sourceforge.net/gnuplot-py/… Commented Jul 4, 2013 at 5:47
  • Right on. That solved my issue. Do you know why? Just an incomplete package before? Commented Jul 4, 2013 at 5:52
  • Umm , I have no idea how you installed Gnuplot . may be python package was not installed. Meanwhile I will just create another post for working command for gnuplot for other user ease Commented Jul 4, 2013 at 6:09

1 Answer 1

6

So guys, the issue was solved by doing :

pip install http://prdownloads.sourceforge.net/gnuplot-py/gnuplot-py-1.8.tar.gz?download

and importing Gnuplot.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.