'''deluged''': 2.1.1~dev7698+5acb57b5a-202203021432~ubuntu18.04.1[[BR]]
'''python-libtorrent''':
1.1.12+daily8918+760f948+202003250209~ubuntu18.04.1[[BR]]
'''python3-libtorrent''':
1.2.15~daily10744+019fcc32b-202202200724~ubuntu18.04.1
'''python --version && python3 --version'''
Python 2.7.17
Python 3.6.9
'''/usr/bin/deluged -d -l /var/log/deluged/daemon.log -L info'''
{{{
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/deluge/_libtorrent.py", line 21, in
<module>
import deluge.libtorrent as lt
ModuleNotFoundError: No module named 'deluge.libtorrent'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/deluge/_libtorrent.py", line 24, in
<module>
import libtorrent as lt
ModuleNotFoundError: No module named 'libtorrent'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/deluged", line 11, in <module>
load_entry_point('deluge==2.1.1.dev7698', 'gui_scripts', 'deluged')()
File "/usr/lib/python3/dist-packages/deluge/core/daemon_entry.py", line
87, in start_daemon
from deluge.core.daemon import is_daemon_running
File "/usr/lib/python3/dist-packages/deluge/core/daemon.py", line 19, in
<module>
from deluge.core.core import Core
File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 26, in
<module>
from deluge._libtorrent import LT_VERSION, lt
File "/usr/lib/python3/dist-packages/deluge/_libtorrent.py", line 26, in
<module>
raise LibtorrentImportError('No libtorrent library found: %s' % (ex))
deluge.error.LibtorrentImportError: No libtorrent library found: No module
named 'libtorrent'
}}}
'''sudo systemctl status deluged'''
{{{
● deluged.service - Deluge Bittorrent Client Daemon
Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor
preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-03-09 14:16:48 CET;
23min ago
Docs: man:deluged
Process: 2941 ExecStart=/usr/bin/deluged -d -l
/var/log/deluged/daemon.log -L info (code=exited, status=1/FAILURE)
Main PID: 2941 (code=exited, status=1/FAILURE)
mar 09 14:16:47 nuc systemd[1]: deluged.service: Main process exited,
code=exited, status=1/FAILURE
mar 09 14:16:47 nuc systemd[1]: deluged.service: Failed with result 'exit-
code'.
mar 09 14:16:48 nuc systemd[1]: deluged.service: Service hold-off time
over, scheduling restart.
mar 09 14:16:48 nuc systemd[1]: deluged.service: Scheduled restart job,
restart counter is at 5.
mar 09 14:16:48 nuc systemd[1]: Stopped Deluge Bittorrent Client Daemon.
mar 09 14:16:48 nuc systemd[1]: deluged.service: Start request repeated
too quickly.
mar 09 14:16:48 nuc systemd[1]: deluged.service: Failed with result 'exit-
code'.
mar 09 14:16:48 nuc systemd[1]: Failed to start Deluge Bittorrent Client
Daemon.
}}}
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3511>
Deluge <https://deluge-torrent.org/>
Deluge Project
Comment (by DjLegolas):
As you can see, python fails to find libtorrent...[[BR]]
Can you please run `python3 -c "import libtorrent;
print(libtorrent.version)"`?
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3511#comment:1>
Comment (by granjerox):
Thanks for your answer but i've recently reinstalled/upgraded my server OS
to Ubuntu 22.04 so I can't run that test.
Anyway:
* I got a solution at https://forum.deluge-
torrent.org/viewtopic.php?f=7&t=56140
* I've moved my deluge server to a docker container version running on my
nas. https://hub.docker.com/r/linuxserver/deluge
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3511#comment:2>
Comment (by fermulator):
Confirming this is a REGRESSION bug. deluged was working fine until a
recent upgrade.
{{{
2022-09-10 08:41:00 upgrade deluged:all 2.0.5-0~202202181912~ubuntu18.04.1
2.1.1-0~202207101304~ubuntu18.04.1
}}}
^ after this, deluge was failing to start. Upon inspection we can see the
same as reported above.
{{{
-- Unit deluged.service has finished starting up.
--
-- The start-up result is RESULT.
Sep 13 07:45:06 fermmy-torrents deluged[1514]: Traceback (most recent call
last):
Sep 13 07:45:06 fermmy-torrents deluged[1514]: File "/usr/lib/python3
/dist-packages/deluge/_libtorrent.py", line 21, in <module>
Sep 13 07:45:06 fermmy-torrents deluged[1514]: import
deluge.libtorrent as lt
Sep 13 07:45:06 fermmy-torrents deluged[1514]: ModuleNotFoundError: No
module named 'deluge.libtorrent'
Sep 13 07:45:06 fermmy-torrents deluged[1514]: During handling of the
above exception, another exception occurred:
Sep 13 07:45:06 fermmy-torrents deluged[1514]: Traceback (most recent call
last):
Sep 13 07:45:06 fermmy-torrents deluged[1514]: File "/usr/lib/python3
/dist-packages/deluge/_libtorrent.py", line 24, in <module>
Sep 13 07:45:06 fermmy-torrents deluged[1514]: import libtorrent as lt
Sep 13 07:45:06 fermmy-torrents deluged[1514]: ModuleNotFoundError: No
module named 'libtorrent'
Sep 13 07:45:06 fermmy-torrents deluged[1514]: During handling of the
above exception, another exception occurred:
Sep 13 07:45:06 fermmy-torrents deluged[1514]: Traceback (most recent call
last):
Sep 13 07:45:06 fermmy-torrents deluged[1514]: File "/usr/bin/deluged",
line 11, in <module>
Sep 13 07:45:06 fermmy-torrents deluged[1514]:
load_entry_point('deluge==2.1.1', 'gui_scripts', 'deluged')()
Sep 13 07:45:06 fermmy-torrents deluged[1514]: File "/usr/lib/python3
/dist-packages/deluge/core/daemon_entry.py", line 87, in start_daemon
Sep 13 07:45:06 fermmy-torrents deluged[1514]: from deluge.core.daemon
import is_daemon_running
Sep 13 07:45:06 fermmy-torrents deluged[1514]: File "/usr/lib/python3
/dist-packages/deluge/core/daemon.py", line 19, in <module>
Sep 13 07:45:06 fermmy-torrents deluged[1514]: from deluge.core.core
import Core
Sep 13 07:45:06 fermmy-torrents deluged[1514]: File "/usr/lib/python3
/dist-packages/deluge/core/core.py", line 26, in <module>
Sep 13 07:45:06 fermmy-torrents deluged[1514]: from deluge._libtorrent
import LT_VERSION, lt
Sep 13 07:45:06 fermmy-torrents deluged[1514]: File "/usr/lib/python3
/dist-packages/deluge/_libtorrent.py", line 26, in <module>
Sep 13 07:45:06 fermmy-torrents deluged[1514]: raise
LibtorrentImportError('No libtorrent library found: %s' % (ex))
Sep 13 07:45:06 fermmy-torrents deluged[1514]:
deluge.error.LibtorrentImportError: No libtorrent library found: No module
named 'libtorrent'
Sep 13 07:45:06 fermmy-torrents systemd[1]: deluged.service: Main process
exited, code=exited, status=1/FAILURE
Sep 13 07:45:06 fermmy-torrents systemd[1]: deluged.service: Failed with
result 'exit-code'.
}}}
{{{
$ python --version && python3 --version
Python 2.7.17
Python 3.6.9
$ python3 -c "import libtorrent; print(libtorrent.version)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'libtorrent'
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
}}}
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3511#comment:3>