Deluge crashing on startup

General support for problems installing or using Deluge
Post Reply
owweeee
New User
New User
Posts: 2
Joined: Tue Mar 02, 2021 9:28 am

Deluge crashing on startup

Post 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.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge crashing on startup

Post by Cas »

It is likely a problem with the pip installed. What version of pip is installed?

How did you install Deluge?
owweeee
New User
New User
Posts: 2
Joined: Tue Mar 02, 2021 9:28 am

Re: Deluge crashing on startup

Post 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.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge crashing on startup

Post by Cas »

Can you check for old versions of Deluge installed like in this old thread viewtopic.php?t=36875
Post Reply