[C++-sig] import problem with hello world example
Roman Yakovenko
roman.yakovenko at gmail.com
Thu Feb 23 08:06:38 CET 2006
On 2/23/06, Etienne Lachance <etienne.lachance at polymtl.ca> wrote:
> Hi All,
>
> Without any problem I compiled the Hello World example. I copied the hello.so
> and libboost_python.so into a directory which is included in my PYTHONPATH.
>
> I get the following error in python:
>
> >>> import hello
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: libboost_python.so.1.33.1: cannot open shared object file: No such
> file or directory
> >>> libboost_python.so.1.33.1
> File "<stdin>", line 1
> libboost_python.so.1.33.1
>
> I'm using SuSe 9.1 and python 2.3
>
> Any ideas?
Yes. I think you need to change LD_LIBRARY_PATH.
The problem is that hello.so depends on libboost_python.so.1.33.1 so and loader
does not know where to find it.
> Thanks for the help.
>
> Etienne
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list