Page 1 of 1
No Module name deluge
Posted: Mon Dec 23, 2024 6:24 am
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).
Re: No Module name deluge
Posted: Tue Dec 24, 2024 7:04 am
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.
Re: No Module name deluge
Posted: Tue Dec 24, 2024 12:41 pm
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
Re: No Module name deluge
Posted: Tue Dec 24, 2024 12:43 pm
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
Re: No Module name deluge
Posted: Tue Dec 24, 2024 12:44 pm
by MushroomingTurtle
you'd think but the deluge-gtk apparently doesn't work with it. Does that have a git as well per chance?
Re: No Module name deluge
Posted: Tue Dec 24, 2024 12:58 pm
by ambipro
https://github.com/deluge-torrent/deluge
You can clone the develop branch, should work with 3.13 iirc
Re: No Module name deluge
Posted: Thu Dec 26, 2024 1:17 pm
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.