Freebsd: No module named libtorrent

General support for problems installing or using Deluge
Post Reply
zar0ku1
New User
New User
Posts: 9
Joined: Fri Jul 10, 2009 1:42 am

Freebsd: No module named libtorrent

Post by zar0ku1 »

hello,
i have a problem,
i install deluge from package on my freebsd 7.0

Code: Select all

#uname -a
FreeBSD shukan.ru 7.0-RELEASE FreeBSD 7.0-RELEASE #4: Thu Jun 18 19:22:56 SAKST 2009     root@shukan.ru:/usr/obj/usr/src/sys/GATEWAY  i386

Code: Select all

#pkg_add -r deluge

Code: Select all

# pkg_info | grep deluge
deluge-1.1.8        A Bittorrent client, using Python, GTK+2 and libtorrent

Code: Select all

# deluged -d
[ERROR   ] 13:08:22 main:207 No module named libtorrent
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/deluge/main.py", line 204, in start_daemon
    Daemon(options, args)
  File "/usr/local/lib/python2.5/site-packages/deluge/core/daemon.py", line 54, in __init__
    from deluge.core.core import Core
  File "/usr/local/lib/python2.5/site-packages/deluge/core/core.py", line 57, in <module>
    import libtorrent as lt
ImportError: No module named libtorrent

Code: Select all

#ls -l /usr/local/lib/python2.5/site-packages/deluge/ | grep libtorrent
-rwxr-xr-x   1 root  wheel  6910129 Jun  9 19:11 libtorrent.so
Why deluge not found libtorrent?

P.S. sorry for my bad english
zar0ku1
New User
New User
Posts: 9
Joined: Fri Jul 10, 2009 1:42 am

Re: Freebsd: No module named libtorrent

Post by zar0ku1 »

Can you help me?
zar0ku1
New User
New User
Posts: 9
Joined: Fri Jul 10, 2009 1:42 am

Re: Freebsd: No module named libtorrent

Post by zar0ku1 »

package libtorrent already installed
# pkg_info | grep libtorrent
libtorrent-0.12.2 BitTorrent Library written in C++
who help me?
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: Freebsd: No module named libtorrent

Post by andar »

zar0ku1 wrote:package libtorrent already installed
# pkg_info | grep libtorrent
libtorrent-0.12.2 BitTorrent Library written in C++
who help me?
You need to make sure the latest libtorrent is installed with the python bindings, or you must build and install the included libtorrent that comes in the Deluge source.
zar0ku1
New User
New User
Posts: 9
Joined: Fri Jul 10, 2009 1:42 am

Re: Freebsd: No module named libtorrent

Post by zar0ku1 »

andar wrote:You need to make sure the latest libtorrent is installed with the python bindings, or you must build and install the included libtorrent that comes in the Deluge source.
But on another freebsd system, where install deluge 1.1.5 and upgraded to 1.1.9 and it works.

Libtorrent-0.12.4 version of the latter in the ports, the ports last updated

and if we look at the code
/usr/local/lib/python2.5/site-packages/deluge/core/core.py:

Code: Select all

try:
    import deluge.libtorrent as lt
except ImportError:
    import libtorrent as lt
    if not (lt.version_major == 0 and lt.version_minor == 14):
        raise ImportError("This version of Deluge requires libtorrent 0.14!")
He would not like the version, but it generally can not be imported
Deluge does not see libtorrent
Post Reply