From: Jim K. <jek...@kl...> - 2003-04-23 22:23:22
|
Well, when I run "python demo.py" I get something like: gnuplot> plot '/cygdrive/c/DOCUMENT~1/Jim/LOCALS~1/Temp/@1540.0' notitle can't read data file "/cygdrive/c/DOCUMENT~1/Jim/LOCALS~1/Temp/@1540.0" (No such file or directory) My guess is that python, which is compiled under cygwin is passing a cygwin file path to pgnuplot.exe. Since neither pgnuplot.exe or wgnupl32.exe is compiled "under cygwin" they don't understand that file path. "under cygwin" means that cygwin is the platform. Typing to python: /cygdrive/c/cygwin: python Python 2.2.2 (#1, Mar 9 2003, 08:18:26) [GCC 3.2 20020927 (prerelease)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.platform cygwin >>> If you build gnuplot using makefile.cyg, it uses the "-mno-cygwin" compile option to build a windows program that does not use the cygwin dll. This should more properly be called makefile.mingw. There isn't a port of gnuplot to the "cygwin platform" that I have seen yet. If I rebuild gnuplot with makefile.cyg, I get the same results but the gnuplot file name is wgnuplot.exe instead of wgnupl32.exe. It still doesn't understand file paths that begin /cygdrive/c/user/... Jim Michael T. Colee wrote: > No worries. I did compile under cygwin, pretty much just followed the > instructions. Had to include numeric.py. If you could be a little more > specific with the details you'd like more info that'd help me be helpful. > > mtc > > Jim Kleckner wrote: > >> Yes, please. >> >> I'm also curious as to whether you have a >> cygwin-compiled (not mingw cross compiled from >> cygwin) version of gnuplot. >> >> Thanks - Jim >> >> ==== >> >> I use it from cygwin called from a python script which is called from a >> cron job. I've had good luck with using symlinks to other drives so I >> refer to thing like: >> >> /home/username/dataspace/whatevir >> >> Let me know if you'd like more details... >> >> mtc >> >> Jim Kleckner wrote: >> >> > Has anyone used gnuplot.py under cygwin? >> > The pgnuplot.exe file doesn't understand /cygdrive/c/... >> > >> > Thanks! Jim |