Page 1 of 1

Deluge crashing on startup

Posted: Wed Oct 06, 2021 9:42 am
by owweeee
A little while ago deluge started behaving oddly, I tried looking for some answers on why but didn't get very far. So today I thought I would try and remove deluge from my system completely and do a fresh install. However I seem to have gotten over enthusiastic somehow with my clearing and when I installed a fresh version it just crashes.

My system is Linux Mint 20.2
Running deluge -v from the commandline gives

Code: Select all

 Traceback (most recent call last):
  File "/usr/bin/deluge", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'deluge==2.0.3' distribution was not found and is required by the application
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_deluge.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/deluge", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'deluge==2.0.3' distribution was not found and is required by the application 
I think the problem is due to something wrong with python on my system but from there I have no idea.

Re: Deluge crashing on startup

Posted: Wed Oct 06, 2021 3:19 pm
by Cas
It is likely a problem with the pip installed. What version of pip is installed?

How did you install Deluge?

Re: Deluge crashing on startup

Posted: Wed Oct 06, 2021 4:09 pm
by owweeee
I installed deluge through the software manager. also tried uninstalling and re-installing again though bash with no luck.

Had a look for pip and couldn't find it on my system, so a quick search on synaptic I found python3-pip package which I have now installed its version is 20.0.2ubuntu1.6. Still getting the same error on start up for deluge tho.

Re: Deluge crashing on startup

Posted: Tue Nov 23, 2021 8:24 pm
by Cas
Can you check for old versions of Deluge installed like in this old thread viewtopic.php?t=36875