|
From: Maurice L. <mj...@ga...> - 2002-08-19 11:20:51
|
Just a FYI. I decided to try once again to get the python bindings to work on
my RH7.3 machines. First I built & installed the latest swig, making sure it
came first in my path, and then that part was traversed correctly. However
more problems:
1. During the make I get:
python setup.py build --force --build-temp="./" --build-lib="./" --flat
Traceback (innermost last):
File "setup.py", line 45, in ?
libs_list = libs.split(" ")
AttributeError: 'string' object has no attribute 'split'
make: *** [plplotcmodule.so] Error 1
where "python" for RH7.3 is python1.5. Is python1.5 no longer supported?
2. I added the necessary search path for python2.2 to the config files.
The python for python2.2 under RH7.3 is called "python2". I also found
I had to build & install Numeric from tarball (no RPM is available), so
I did so. Everything configured fine at that point, but the make died
at the same place as #1 because the make uses "python" rather than
"python2". So, I entered this command by hand, typed "make" again,
and everything finally was built.
3. Tried to run the demos, and it failed. From the tmp dir:
trinity$ ./pythondemos.py
Traceback (innermost last):
File "./pythondemos.py", line 15, in ?
from plplot import *
File "/home/mjl/dev/plplot/plpy/tmp/plplot.py", line 20, in ?
from plplotc import *
ImportError: /home/mjl/dev/plplot/plpy/tmp/plplotcmodule.so: undefined symbol:
PySequence_Size
So maybe again it was a python vs python2 problem. Trying again:
trinity$ python2 ./pythondemos.py
Traceback (most recent call last):
File "./pythondemos.py", line 15, in ?
from plplot import *
File "/home/mjl/dev/plplot/plpy/tmp/plplot.py", line 20, in ?
from plplotc import *
ImportError: dynamic module does not define init function (initplplotc)
Any ideas?
--
Maurice LeBrun mj...@ga...
Research Organization for Information Science and Technology of Japan (RIST)
|