libtorrent-rasterbar ImportError after install

General support for problems installing or using Deluge
Post Reply
tonny
New User
New User
Posts: 9
Joined: Thu Jun 20, 2013 8:30 pm

libtorrent-rasterbar ImportError after install

Post by tonny »

I'm having problems installing libtorrent-rasterbar in CentOS.
I can't find libtorrent-rasterbar in yum neither with easy_install.

So, I download libtorrent-rasterbar source code and use:

Code: Select all

./configure --disable-debug --prefix=/usr --with-boost-libdir=/usr/lib64 --enable-python-binding
make
make install
Then go to bindings/python and use:

Code: Select all

python setup.py clean
python setup.py install
After that all look to be ok, but when I go to python:

Code: Select all

Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: libtorrent-rasterbar.so.7: cannot open shared object file: No such file or directory
>>> 
The library looks to be install in /usr/lib:
  • -rw-r--r-- 1 root root 259486338 Jul 2 11:20 libtorrent-rasterbar.a
    -rwxr-xr-x 1 root root 1072 Jul 2 11:20 libtorrent-rasterbar.la
    lrwxrwxrwx 1 root root 29 Jul 2 11:20 libtorrent-rasterbar.so -> libtorrent-rasterbar.so.7.0.0
    lrwxrwxrwx 1 root root 29 Jul 2 11:20 libtorrent-rasterbar.so.7 -> libtorrent-rasterbar.so.7.0.0
    -rwxr-xr-x 1 root root 91417446 Jul 2 11:20 libtorrent-rasterbar.so.7.0.0
Why I getting "ImportError: libtorrent-rasterbar.so.7: cannot open shared object file: No such file or directory"?, any help will be appreciated I'm really lost.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: libtorrent-rasterbar ImportError after install

Post by Cas »

You do not need to also install from the python bindings dir, thats what --enable-python-binding is for.

Did you run ldconfig after installing and are you sure the prefix is correct?
tonny
New User
New User
Posts: 9
Joined: Thu Jun 20, 2013 8:30 pm

Re: libtorrent-rasterbar ImportError after install

Post by tonny »

Thank you very much Cast.

I missed using ldconfig now it's working.

Thank you!
Post Reply