Johan, All,<br>PATH:<br>ssands$ $PATH<br>-bash: /Library/Frameworks/Python.framework/Versions/2.6/bin:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin: No such file or directory<br><br>This is one of my problems, is that I am uncertain where to place all the various components of the software.<br>
<br>Gnuplot.app is in the applications folder (v4.2.5)<br><br>I also have in the site-packages folder, a folder labeled gnuplot-py-1.8 which contains:<br><br>computer:/Applications/Python_2.6/site-packages/gnuplot-py-1.8 ssands$ ls<br>
ANNOUNCE.txt LICENSE.txt README.txt doc gp_java.py setup.cfg<br>CREDITS.txt MANIFEST.in TODO.txt funcutils.py gp_mac.py setup.py<br>
Errors.py NEWS.txt _Gnuplot.py gnuplot_Suites.py gp_macosx.py termdefs.py<br>FAQ.txt PKG-INFO __init__.py gp.py gp_unix.py test.py<br>
Gnuplot.html PlotItems.py demo.py gp_cygwin.py gp_win32.py utils.py<br><br>Also in the site-packages folder, is Gnuplot:<br><br>computer:/Applications/Python_2.6/site-packages ssands$ ls<br>
Gnuplot gnuplot-py-1.8 numpy scipy-0.7.2-py2.6.egg-info wxredirect.pth<br>README gnuplot_py-1.8-py2.6.egg-info numpy-1.4.1-py2.6.egg-info setuptools-0.6c11-py2.6.egg<br>
easy-install.pth nose-0.11.3-py2.6.egg scipy<br><br>The Gnuplot folder contains:<br><br>computer:/Applications/Python_2.6/site-packages/Gnuplot ssands$ ls<br>Errors.py __init__.py gnuplot_Suites.py gp_java.py gp_unix.py test.py<br>
Errors.pyc __init__.pyc gnuplot_Suites.pyc gp_java.pyc gp_unix.pyc test.pyc<br>PlotItems.py demo.py gp.py gp_mac.py gp_win32.py utils.py<br>
PlotItems.pyc demo.pyc gp.pyc gp_mac.pyc gp_win32.pyc utils.pyc<br>_Gnuplot.py funcutils.py gp_cygwin.py gp_macosx.py termdefs.py<br>
_Gnuplot.pyc funcutils.pyc gp_cygwin.pyc gp_macosx.pyc termdefs.pyc<br><br clear="all">Best regards,<br><br>Steve<br><br><br>
<br><br><div class="gmail_quote">On Mon, Jul 12, 2010 at 3:46 PM, Johan Beisser <span dir="ltr"><<a href="mailto:jb@caustic.org">jb@caustic.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
What would help is: what is your current PATH variable? Where are<br>
gnuplot and its libraries installed?<br>
<div><div></div><div class="h5"><br>
<br>
On Mon, Jul 12, 2010 at 2:51 PM, Steve Sands <<a href="mailto:sandssb@gmail.com">sandssb@gmail.com</a>> wrote:<br>
> Hello All,<br>
> Newbie here.<br>
> Using Mac 10.4.11; Intel Core 2; Python 2.6.5; [GCC 4.0.1 (Apple Inc. build<br>
> 5493)] on darwin<br>
><br>
> I have downloaded gnuplot, scipy, numpy, and the demo.py file from which one<br>
> can glean utility on how to use gnuplot commands from within python. I<br>
> managed to get this working once, and my issue seemed to be related to my<br>
> PATH variable. I.E., the PATH was incorrect, and thus the demo file would<br>
> not work. I did copy the path variable from that session, but once I closed<br>
> the terminal, despite resetting the PATH, I can't quite get this demo file<br>
> to work again. I'm pretty sure this is something simple to rectify, but I<br>
> can't quite figure it out. Thus:<br>
><br>
> steve-computer:/Applications/Python_2.6/site-packages ssands$ cd<br>
> gnuplot-py-1.8<br>
> steve-computer:/Applications/Python_2.6/site-packages/gnuplot-py-1.8 ssands$<br>
> python demo.py<br>
> gnuplot> set terminal aqua<br>
> gnuplot> set title "A simple example"<br>
> gnuplot> set data style linespoints<br>
> sh: line 1: gnuplot: command not found<br>
> Traceback (most recent call last):<br>
> File "demo.py", line 110, in <module><br>
> demo()<br>
> File "demo.py", line 33, in demo<br>
> g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]])<br>
> File "/Applications/Python_2.6/site-packages/Gnuplot/_Gnuplot.py", line<br>
> 285, in plot<br>
> self.refresh()<br>
> File "/Applications/Python_2.6/site-packages/Gnuplot/_Gnuplot.py", line<br>
> 226, in refresh<br>
> self(self.plotcmd + ' ' + string.join(plotcmds, ', '))<br>
> File "/Applications/Python_2.6/site-packages/Gnuplot/_Gnuplot.py", line<br>
> 210, in __call__<br>
> self.gnuplot(s)<br>
> File "/Applications/Python_2.6/site-packages/Gnuplot/gp_macosx.py", line<br>
> 144, in __call__<br>
> self.flush()<br>
> IOError: [Errno 32] Broken pipe<br>
> ^Z<br>
> [1]+ Stopped python demo.py<br>
><br>
> Just so folks are aware, I have tried discussing this with the Python<br>
> community, they suggested I speak with the Unix community.<br>
> Any suggestions/help would be greatly appreciated. Thanks in advance.<br>
><br>
> Best regards,<br>
><br>
> Steve<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Buug mailing list<br>
> <a href="mailto:Buug@weak.org">Buug@weak.org</a><br>
> <a href="http://www.weak.org/mailman/listinfo/buug" target="_blank">http://www.weak.org/mailman/listinfo/buug</a><br>
><br>
><br>
</blockquote></div><br>