Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42744

RE : Gnuplot

From "Murugesan, Karthik" <karthik.murugesan@delphi.com>
Subject RE : Gnuplot
Date 2013-04-04 09:05 +0000
Newsgroups comp.lang.python
Message-ID <mailman.92.1365066550.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello, I am having a few issues interfacing gnuplot with python. When I try to run the demo.py file I get the following error messages:


Traceback (most recent call last):
  File "C:\Program Files\Common Files\dSPACE\Python25\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\demo.py", line 110, in <module>
    demo()
  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\demo.py", line 36, in demo
    g.reset()
  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\_Gnuplot.py", line 366, in reset
    self('reset')
  File "C:\Program Files\Common Files\dSPACE\Python25\Lib\site-packages\Gnuplot\_Gnuplot.py", line 210, in __call__
    self.gnuplot(s)
  File "C:\Program Files\Common Files\dSPACE\Python25\lib\site-packages\Gnuplot\gp_win32.py", line 130, in __call__
    self.write(s + '\n')
IOError: [Errno 22] Invalid argument

After reading other users having similar problems, I altered the 'gnuplot_command' line in gp_win32.py to 'gnuplot_command = "c:\Program Files\wgnuplot\bin\pgnuplot.exe", in an attempt to directly get the pgnuplot.exe(which I believe is the root of the problem). However, I still get the same error message. Any ideas on how to solve this?

Thanks
**************************************************************************************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. ****************************************************************************************

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE : Gnuplot "Murugesan, Karthik" <karthik.murugesan@delphi.com> - 2013-04-04 09:05 +0000

csiph-web