From: <jca...@in...> - 2001-11-24 14:42:43
|
On Saturday 24 November 2001 00:32, Alan W. Irwin wrote: | With plplot tree freshly updated from CVS, I configure like I | normally do, e.g., | | ./configure --prefix=3D/usr/local/plplot --with-double | --enable-dynamic-drivers --enable-java --enable-gnome > & ! | configure.out | | Then from tmp I executed | ./pythondemos.py -dev png | Unable to load driver: gd.drv. | Reason: /usr/local/plplot/lib/drivers/gd.drv: undefined symbol: | plP_setpxl Segmentation fault | | First, why should a test in tmp refer to some previously installed | version in /usr/local/plplot? | Second, when I removed /usr/local/plplot/* I got a new error | message: | | ./pythondemos.py -dev png -o temp.png | Unable to load driver: gd.drv. | Reason: /usr/local/plplot/lib/drivers/gd.drv: cannot open shared | object file: No such file or directory | | So somehow /usr/local/plplot is hardcoded in the python case. With | /usr/local/plplot removed, I have no trouble with the png driver | for the x01c example, and the psc driver works both for the x01c | and pythondemos.py examples. | | I am virtually positive I checked the png driver before when I was | first testing pythondemos.py. Since then, I have changed to | python-2.1 and Joao has made some driver changes so I don't know | which is causing the trouble. Joao, can you replicate this problem | on your (presumably) python-1.5 system? Not exactly: jcard@rick:~/tmp/plplot/tmp > ./pythondemos.py -dev png -o po.png Device not loaded! tag=3Dpng, drvidx=3D4 Trying to load gd.drv on ./drivers/gd.drv Trying to load at /usr/local/test/lib/drivers/gd.drv Unable to load driver: gd.drv. Reason: /usr/local/test/lib/drivers/gd.drv: cannot open shared object=20 file: No such file or directory Segmentation fault I have plcore modified to print diagnostics while trying to load=20 dynamic drivers, thus the more verbose output. I'm using python-1.5.2, and most python demos fail: jcard@rick:~/tmp/plplot/tmp > ./pythondemos.py -dev ps -o po.ps=20 Device not loaded! tag=3Dpsm, drvidx=3D5 Trying to load ps.drv on ./drivers/ps.drv Opened po.ps Traceback (innermost last): File "./pythondemos.py", line 23, in ? import xw01 File "/home/jcard/tmp/plplot/tmp/xw01.py", line 141, in ? main() File "/home/jcard/tmp/plplot/tmp/xw01.py", line 20, in main plot1(6., 1., 0., 0.) File "/home/jcard/tmp/plplot/tmp/xw01.py", line 63, in plot1 plpoin(xs, ys, 9) TypeError: Array can not be safely cast to required type The above message happens for most, but not all, examples; e.g.,=20 xw06.py works OK. As for you, the C examples work OK: jcard@rick:~/tmp/plplot/tmp > ./x01c -dev png -o po.png Plplot library version: 5.0.4 Device not loaded! tag=3Dpng, drvidx=3D4 Trying to load gd.drv on ./drivers/gd.drv Opened po.png So, I don't know what the problem is, as I never used python, and my=20 changes to the driver where only related with dynamic building, never=20 touching the code itself. There is some configure problems with pyqt. I dont have it installed,=20 but it is build anyway! It looks like configure don't check for it. Also, I have problems with "make" after the first sucesseful make,=20 i.e., the first make runs OK, but the second and next give the=20 following message: > touch plline.c > make =2E... Building Python module. =20 echo 'pl plmodule.c plmodule2.c -I. -I/usr/include/python1.5=20 -I/usr/include/python1.5/Numeric -L.. -L. -lplplot -ltclmatrix=20 -ltk8.3 -ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lm -Wl,-rpath=20 -Wl,/home/jcard/tmp/plplot/tmp' >> python_dynamic/Setup.in cd python_dynamic ; make -s -f Makefile.pre.in boot ; make -s ; \ mv -f plmodule.so .. mv: plmodule.so: No such file or directory make: *** [plmodule.so] Error 1 Joao |