Cannot get PythonMagick to work

Carsten Gehling carsten at sarum.dk
Wed May 14 00:32:20 EDT 2003


I'm trying to install PythonMagick (along with the dependencies
GraphicsMagick and Boost)

GraphicsMagick is configures only with the option --without-je2

After building the boost python library, I've copied PythonMagick to
boost_1_30_0/libs/python and configured the buildLinux script as following:
-----------------------
#! /bin/sh

export BUILD=release
export PYTHON_ROOT=/usr/local/python22
export MAGICK_SRC_PATH=/usr/local/include/GraphicsMagick/
export MAGICK_LIB_PATH=/usr/local/share/GraphicsMagick/

/data/solutions/install/bin.linuxx86/bjam
-----------------------
And run it.

Calling python setup.py install gave this output
-----------------------------
[root at netlag02 PythonMagick]# /usr/local/python22/bin/python setup.py
install
running install
running build
running install_data
copying ./bin-stage/libboost_python.so -> /usr/local/python22/lib
copying ./bin-stage/libboost_python.so.1.30.0 -> /usr/local/python22/lib
copying ./bin-stage/_PythonMagick.so ->
/usr/local/python22/lib/python2.2/lib-dynload
not copying ./bin-stage/_PythonMagick.so.1.30.0 (output up-to-date)
copying ./bin-stage/_PythonMagickDrawable.so ->
/usr/local/python22/lib/python2.2/lib-dynload
not copying ./bin-stage/_PythonMagickDrawable.so.1.30.0 (output up-to-date)
copying ./bin-stage/_PythonMagickPath.so ->
/usr/local/python22/lib/python2.2/lib-dynload
not copying ./bin-stage/_PythonMagickPath.so.1.30.0 (output up-to-date)
not copying PythonMagick/__init__.py (output up-to-date)
not copying PythonMagick/Drawable/__init__.py (output up-to-date)
not copying PythonMagick/Path/__init__.py (output up-to-date)
not copying PythonMagick/examples/animate1.py (output up-to-date)
not copying PythonMagick/examples/animate2.py (output up-to-date)
not copying PythonMagick/examples/examples.py (output up-to-date)
not copying PythonMagick/examples/example1.py (output up-to-date)
not copying PythonMagick/examples/example2.py (output up-to-date)
not copying PythonMagick/examples/example3.py (output up-to-date)
not copying PythonMagick/examples/example4.py (output up-to-date)
not copying PythonMagick/examples/example5.py (output up-to-date)
not copying PythonMagick/examples/example6.py (output up-to-date)
not copying PythonMagick/examples/pil.py (output up-to-date)
not copying PythonMagick/examples/stripProfile.py (output up-to-date)
not copying PythonMagick/examples/img/01.jpg (output up-to-date)
not copying PythonMagick/examples/img/02.jpg (output up-to-date)
not copying PythonMagick/examples/img/test.jpg (output up-to-date)
not copying PythonMagick/examples/img/iccProfile.jpg (output up-to-date)
not copying PythonMagick/examples/out/out.txt (output up-to-date)
------------------------------
(the "not copying" are because, I've tried this a couple of times now

All should be ready now, but if I run one of the examples, the following
error occurs:
--------------------------------
[root at netlag02 examples]# /usr/local/python22/bin/python animate1.py
Traceback (most recent call last):
  File "animate1.py", line 1, in ?
    from PythonMagick import *
  File
"/usr/local/python22/lib/python2.2/site-packages/PythonMagick/__init__.py",
line 1, in ?
    from _PythonMagick import *
ImportError: libboost_python.so.1.30.0: cannot open shared object file: No
such file or directory
--------------------------------
But the library file IS in the right place:

[root at netlag02 lib]# ll /usr/local/python22/lib/
total 980
-rwxr-xr-x    1 root     root       488396 May  7 09:14 libboost_python.so
-rwxr-xr-x    1 root     root       488396 May  7 09:14
libboost_python.so.1.30.0
drwxr-xr-x   16 root     root        12288 May  7 05:59 python2.2

What is wrong?

- Carsten






More information about the Python-list mailing list