Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#1198 closed bug (Invalid)

Error at import libtorrent

Reported by: simonbcn Owned by:
Priority: blocker Milestone:
Component: Core Version: 1.2.1
Keywords: Cc:

Description

I have built deluge 1.2.2 and libtorrent-0.14.10 from source.
libtorrent was build with this flags:

./configure --disable-debug --enable-python-binding

But deluge can't import libtorrent:

[ERROR   ] main:216 libtorrent-rasterbar.so.5: can not open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/main.py", line 209, in start_daemon
    Daemon(options, args)
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/core/daemon.py", line 136, in __init__
    from deluge.core.core import Core
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/local/lib/python2.6/dist-packages/deluge-1.2.1-py2.6.egg/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: libtorrent-rasterbar.so.5: can not open shared object file: No such file or directory

But they exist in /usr/local/lib/:

-rw-r--r-- 1 root root libtorrent-rasterbar.a
-rwxr-xr-x 1 root root libtorrent-rasterbar.la
lrwxrwxrwx 1 root root libtorrent-rasterbar.so -> libtorrent-rasterbar.so.5.0.0
lrwxrwxrwx 1 root root libtorrent-rasterbar.so.5 -> libtorrent-rasterbar.so.5.0.0
-rwxr-xr-x 1 root root libtorrent-rasterbar.so.5.0.0

And in /usr/local/lib/python2.6/dist-packages/:

-rwxr-xr-x 1 root staff /usr/local/lib/python2.6/dist-packages/libtorrent.so
-rw-r--r-- 1 root staff /usr/local/lib/python2.6/dist-packages/python_libtorrent-0.14.10-py2.6.egg-info

What's the problem?

Change History (2)

comment:1 Changed 14 years ago by simonbcn

  • Resolution set to invalid
  • Status changed from new to closed

I found the error. The problem was solved by running:

sudo ldconfig

comment:2 Changed 10 years ago by Cas

  • Milestone 1.4.0 deleted
Note: See TracTickets for help on using tickets.