Page 1 of 1

daemon on wheezy doesnt start

Posted: Mon Jun 10, 2013 9:19 pm
by icki
hi

i tried to install deluge from source, my webinterface is working fine.
but.. the daemon doesnt start with this error(run with deluged -d -L debug)

Code: Select all

[INFO    ] 23:15:41 daemon:124 Deluge daemon 1.3.6
[DEBUG   ] 23:15:41 daemon:125 options: {'profile': False, 'loglevel': 'debug', 'quiet': False, 'ui_interface': None, 'listen_interface': None, 'logfile': None, 'config': None, 'port': None, 'pidfile': None, 'donot': True}
[DEBUG   ] 23:15:41 daemon:126 args: []
[ERROR   ] 23:15:41 main:237 dynamic module does not define init function (initlibtorrent)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/main.py", line 230, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/core/daemon.py", line 136, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: dynamic module does not define init function (initlibtorrent)
i get the same error if i try to get the version of libtorrent:
python -c "from deluge._libtorrent import lt; print lt.version"

Code: Select all

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: dynamic module does not define init function (initlibtorrent)
i tried to install libtorrent-rasterbar6 but that didnt help.

now for my system:
os: debian wheezy
python (python -V): Python 2.7.3

any ideas what i could try?

cheers
icki

Re: daemon on wheezy doesnt start

Posted: Mon Jun 10, 2013 9:26 pm
by Cas
Did you also install python-libtorrent?

Re: daemon on wheezy doesnt start

Posted: Tue Jun 11, 2013 6:34 am
by icki
yes i did :)

this is my output from locate libtorrent:

Code: Select all

/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/_libtorrent.py
/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/_libtorrent.pyc
/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/libtorrent.py
/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/libtorrent.pyc
/usr/lib/python2.7/dist-packages/deluge-1.3.6-py2.7-linux-x86_64.egg/deluge/libtorrent.so
/var/cache/apt/archives/libtorrent-rasterbar6_0.15.10-1+b1_amd64.deb
/var/cache/apt/archives/python-libtorrent_0.15.10-1+b1_amd64.deb
/var/lib/dpkg/info/libtorrent-rasterbar6.list
/var/lib/dpkg/info/libtorrent-rasterbar6.postrm
icki

Re: daemon on wheezy doesnt start

Posted: Tue Jun 11, 2013 10:47 am
by Cas
libtorrent.so should not be in the deluge package and there should be no libtorrent.py file in the package either. Uninstall libtorrent and remove any remaining files then reinstall.

Re: daemon on wheezy doesnt start

Posted: Tue Jun 11, 2013 3:16 pm
by icki
i tried to remove the files as you suggested unfortunately that didnt work.
here is what i did(not for the first time but it seems the order is important):

1. removed/uninstalled deluge completely
2. removed every reference to libtorrent
3. installed python-libtorrent and libtorrent-rasterbar6 via apt-get
4. reinstalled deluge from source

and now its working.

Thanks for your help :)
you can close this thread.

cheers
icki