Cannot get PythonMagick to work

Robin Munn rmunn at pobox.com
Wed May 14 14:28:40 EDT 2003


Carsten Gehling <carsten at sarum.dk> wrote:
> I'm trying to install PythonMagick (along with the dependencies
> GraphicsMagick and Boost)

[snip]

> 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?

What do you get when you run "ldd /usr/local/python22/lib/libboost_python.so"?

What do you get when you run "ld /path/to/_PythonMagick.so"?

The path in the above ldd command line will probably be
/usr/local/python22/lib/python2.2/site-packages/PythonMagick -- but it
might be /usr/local/python22/lib/python2.2/site-packages (with no
/PythonMagick at the end).

If either one of those (especially the second) gives any "Not found"
results, then that's the problem. Does your /etc/ld.so.conf include
/usr/local/python22/lib?

-- 
Robin Munn <rmunn at pobox.com>
http://www.rmunn.com/
PGP key ID: 0x6AFB6838    50FF 2478 CFFB 081A 8338  54F7 845D ACFD 6AFB 6838




More information about the Python-list mailing list