No Module name deluge

General support for problems installing or using Deluge
Post Reply
MushroomingTurtle
New User
New User
Posts: 5
Joined: Sun Nov 12, 2023 6:40 pm

No Module name deluge

Post by MushroomingTurtle »

Traceback (most recent call last):
File "/usr/bin/deluge", line 5, in <module>
from deluge.ui.ui_entry import start_ui
ModuleNotFoundError: No module named 'deluge'
With deluge 1:2.1.1-6

Help?

I am using Artix linux and this only happened after a recent update it was working fine before (i.e. last version, which I no longer have).
User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: No Module name deluge

Post by ambipro »

You need to install deluge, it appears you didn't install it....

using pip to install would be the best method to be up to date, most repositories using things like apt are outdated.
MushroomingTurtle
New User
New User
Posts: 5
Joined: Sun Nov 12, 2023 6:40 pm

Re: No Module name deluge

Post by MushroomingTurtle »

It's installed, python was recently updated it seems and deluge couldn't handle it.

I'm using Artix Linux which is Arch without systemd.

Code: Select all

[user@pc ~]$ deluge
Traceback (most recent call last):
  File "/usr/bin/deluge", line 8, in <module>
    sys.exit(start_ui())
             ~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py", line 140, in start_ui
    ui.start()
    ~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/deluge/ui/gtk3/__init__.py", line 45, in start
    from .gtkui import GtkUI
  File "/usr/lib/python3.13/site-packages/deluge/ui/gtk3/gtkui.py", line 50, in <module>
    from deluge.ui.tracker_icons import TrackerIcons
  File "/usr/lib/python3.13/site-packages/deluge/ui/tracker_icons.py", line 22, in <module>
    from deluge.httpdownloader import download_file
  File "/usr/lib/python3.13/site-packages/deluge/httpdownloader.py", line 9, in <module>
    import cgi
ModuleNotFoundError: No module named 'cgi'
This is what I'm getting now after a fresh -Syu.

Code: Select all

[user@pc ~]$ yay -Qs deluge*
local/deluge 1:2.1.1-8
    BitTorrent client with multiple user interfaces in a client/server model
local/deluge-dinit 20211030-4 (dinit-world)
    dinit service scripts for deluge
local/deluge-gtk 1:2.1.1-8
    GTK UI for Deluge
Python3

Code: Select all

local/python 3.13.1-1
    The Python programming language
Last edited by MushroomingTurtle on Tue Dec 24, 2024 12:43 pm, edited 1 time in total.
User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: No Module name deluge

Post by ambipro »

Yea, I'm not sure if 3.13 works properly across the board yet, definitely doesn't on non-develop though, would opt for 3.10 in a venv or something, or install pyenv.

If you want to clone the repo's develop branch though i think you can use 3.13
MushroomingTurtle
New User
New User
Posts: 5
Joined: Sun Nov 12, 2023 6:40 pm

Re: No Module name deluge

Post by MushroomingTurtle »

you'd think but the deluge-gtk apparently doesn't work with it. Does that have a git as well per chance?
User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: No Module name deluge

Post by ambipro »

https://github.com/deluge-torrent/deluge

You can clone the develop branch, should work with 3.13 iirc
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: No Module name deluge

Post by mhertz »

I don't know anything about artix, but for arch they fixed the py3.13 rebuild on there 2.1.1-8 release, through adding a patch removing cgi import/usage, as cgi removed in py3.13, so could install the arch package if artix not updated yet, sounds like they haven't if the version naming match I.e 2.1.1-6 as you posted where on arch *-7 triggered the py3.13 rebuild and as said *-8 patched cgi out.

Another probably easier/better solution is just install additionally from pip the package legacy-cgi, adding in that cgi module again for apps needing still, like here.

Hope helps, and sorry didn't respond earlier.
Post Reply