problem building PythonMagick-0.7 on feisty (ubuntu)
Posted: 2007-09-21T23:59:22-07:00
Hi,
I would love to get PythonMagick running on feisty. So, from source I have built the following (in /usr/local):
python-2.5.1
ImageMagick-6.3.5
boost_1_34_1
PythonMagick-0.7
One problem:
getting PythonMagick to run ./configure correctly. It seems it doesn't find any boost libraries it likes. But, according to boost and boost tests, the boost libs are fine (in /usr/local/lib)
I really had to fool with environment flags, etc., to get PythonMagick to build - which it finally did. But I am not sure it is right.
Two subsequent problems:
1. When I run python, and try to "import PythonMagick", I get a "ImportError: No module named _PythonMagick". The is very perplexing, for clearly there is a _PythonMagick.so contained in the site-packages/PythonMagick directory.
2. If I actually cd to that directory, and then run python and do an import, I get the following:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/site-packages/PythonMagick/__init__.py", line 1, in <module>
import _PythonMagick
ImportError: /usr/local/lib/python2.5/site-packages/PythonMagick/_PythonMagick.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv
It obviously isn't finding the boost library (or wasn't linked to it correctly).
Any ideas on how to fix? This is driving me crazy!
Thanks alot.
I would love to get PythonMagick running on feisty. So, from source I have built the following (in /usr/local):
python-2.5.1
ImageMagick-6.3.5
boost_1_34_1
PythonMagick-0.7
One problem:
getting PythonMagick to run ./configure correctly. It seems it doesn't find any boost libraries it likes. But, according to boost and boost tests, the boost libs are fine (in /usr/local/lib)
I really had to fool with environment flags, etc., to get PythonMagick to build - which it finally did. But I am not sure it is right.
Two subsequent problems:
1. When I run python, and try to "import PythonMagick", I get a "ImportError: No module named _PythonMagick". The is very perplexing, for clearly there is a _PythonMagick.so contained in the site-packages/PythonMagick directory.
2. If I actually cd to that directory, and then run python and do an import, I get the following:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/site-packages/PythonMagick/__init__.py", line 1, in <module>
import _PythonMagick
ImportError: /usr/local/lib/python2.5/site-packages/PythonMagick/_PythonMagick.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv
It obviously isn't finding the boost library (or wasn't linked to it correctly).
Any ideas on how to fix? This is driving me crazy!
Thanks alot.