From: Michael H. <hag...@jp...> - 2002-08-13 17:30:32
|
Marc French writes: > Mike, > This is the error I am getting when importing Gnuplot.py > > >>>import Gnuplot > Traceback (most recent call last): > File "<interactive input>", line 1, in ? > ImportError: No module named Gnuplot > > > > >Marc French writes: > > > > > Hello Michael, > > > > > I am having trouble getting the gnuplot.py to work in a windows > > > > > environment. I am very new to python, and I think I am missing > > > > > something very small. I have installed the gnuplot.py. It created a= > > > > > > > directory "C:\python22\lib\site-packages\Gnuplot-1.5" I have tried > > > > > running both the demo.py and the test.py. I am trying to load some > > > > > spectral data and do peak fitting once I get this to work. Do you > > > > > have any pointers for me? Can you help? Oh, there's one strange thing. The directory that Gnuplot.py created was C:\python22\lib\site-packages\Gnuplot-1.5, when normally it should be something like C:\python22\lib\site-packages\Gnuplot. Can you check if you have that directory too, and if not rename the directory you have with that name? Also try starting python then typing >>> import sys >>> print sys.path and check whether the directory *containing* the Gnuplot directory (in your case probably C:\python22\lib\site-packages) is included in the path. Michael -- Michael Haggerty hag...@jp... |