From: Xynos K \(Comp\) <kx...@gl...> - 2006-08-02 16:42:19
|
Titi Anggono wrote: > [...] > here I got the message >=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > Traceback (most recent call last): > [...] > File > "C:\Python23\Lib\site-packages\Gnuplot\gp_win32.py", > line 125, in __call__ > self.write(s + '\n') > IOError: [Errno 22] Invalid argument > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > FYI, I use python2.3,Gnuplot-py-1.7 and winXP. Any > problems with my code ?? =20 Solution for Windows XP: =20 I had the same problem. I downloaded the Gnuplot program and it worked, although Gnuplot.py did not, even after adding the installation path (e.g.) to the PATH variable. =20 I put Gnuplot in C:\Program Files\ so the directory is C:\Program Files\gnuplot\bin =20 I then went to my Gnuplot folder in the site-packages folder (e.g. C:\ Program Files\Python24\Lib\site-packages\Gnuplot) and edited the gp_win32.py file. =20 Instead of gp_win32.py: =20 gnuplot_command =3D r' pgnuplot.exe' =20 Edit it to gp_win32.py: =20 gnuplot_command =3D r'"C:\Program Files\gnuplot\bin\pgnuplot.exe"' =20 and now it should work! =20 Good luck =20 Konstantinos Xynos Research Student Information Security Research Group University of Glamorgan =20 |