From: Michael H. <mh...@al...> - 2005-11-08 18:49:54
|
John wrote: > I have something of a problem with your otherwise lovely python > interface ( v.1.7 on Mandriva Linux ) > > Using install with --home set to the directory I want the resultant > files in, I get lots of problems with Gnuplot.py not being found. I had > a quick look on the mailing list, and it was all as a result of iffy > installs. The software appears to have installed correctly, and renaming > _Gnuplot.py to Gnuplot.py alleviated many of the problems after a little > tweaking of the funcutils.py file, but test.py still has trouble: > > AttributeError: class Gnuplot has not attribute 'Data' > > this from the line: > > return apply(Gnuplot.Data, (xvals, data), keyw) > > in funcutils.py > > Any ideas? Gnuplot.py is a module; it has to be located in a directory called "Gnuplot" and the directory *containing* the Gnuplot directory has to be in the python path. For example, if the python path includes /my/path, then your installation should put files in places like /my/path/Gnuplot/__init__.py /my/path/Gnuplot/_Gnuplot.py /my/path/Gnuplot/Data.py et cetera. It looks like you added the directory "/my/path/Gnuplot" to your python path, which is incorrect. (You will also have to undo your tweaks.) I'm sending a CC of this list to the gnuplot mailing list. Please use the mailing list for future questions. Michael |