Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] deluge.error.LibtorrentImportError: No libtorrent library found: No module named 'libtorrent' (Debian 12) #1158

Open
bennohef opened this issue Apr 22, 2024 · 5 comments
Labels

Comments

@bennohef
Copy link

bennohef commented Apr 22, 2024

What happened?

Deluge 2.1.1 with libtorrent v1.2 do not start. Seems some installation issue with deluged package (libtorrent).

Installation do not fail, but deluged just do not starts.

This is happening on Debian 12, within 11 there are no issues.

Swizzin commit

953e4c7

What OS are you using?

Debian 12 (Bookworm)

What architecture is your OS?

amd64

Relevant logs and output

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 33, in <module>
    sys.exit(load_entry_point('deluge==2.1.1', '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'
@bennohef bennohef added the bug label Apr 22, 2024
@bennohef bennohef changed the title [BUG] [BUG] deluge.error.LibtorrentImportError: No libtorrent library found: No module named 'libtorrent' Apr 22, 2024
@bennohef bennohef changed the title [BUG] deluge.error.LibtorrentImportError: No libtorrent library found: No module named 'libtorrent' [BUG] deluge.error.LibtorrentImportError: No libtorrent library found: No module named 'libtorrent' (Debian 12) Apr 22, 2024
@AncientVamp
Copy link

I have the same issue. #1146

@bennohef
Copy link
Author

I have the same issue. #1146

Fixed it. Just change boost lib. version. By default it's 1.74, change to latest one on today (1.85).

It can be changed in "/etc/swizzin/sources/functions/libtorrent", there you will find "BOOST_VERSION" variable in boostrap function.

@AncientVamp
Copy link

I have the same issue. #1146

Fixed it. Just change boost lib. version. By default it's 1.74, change to latest one on today (1.85).

It can be changed in "/etc/swizzin/sources/functions/libtorrent", there you will find "BOOST_VERSION" variable in boostrap function.

Oh wow. Yeah that was it. Works on my end now also :). Thank You

@slimequeen3251
Copy link

slimequeen3251 commented May 8, 2024

Fixed it. Just change boost lib. version. By default it's 1.74, change to latest one on today (1.85).

It can be changed in "/etc/swizzin/sources/functions/libtorrent", there you will find "BOOST_VERSION" variable in boostrap function.

When you do this and recompile with : sudo box upgrade deluge

It overwrites those changes as it repulls the swizzin repo. How do you make it use the new boost version?

Edit: create .dev.lock file and it won't overwrite. Thanks.

@liaralabs
Copy link
Member

This has been fixed in develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants