Can't get deluged to start

General support for problems installing or using Deluge
Post Reply
elementzero
New User
New User
Posts: 2
Joined: Sat Jan 18, 2020 4:45 am

Can't get deluged to start

Post by elementzero »

Hello, I used to have deluged running on Raspbian Jessie which I had built and installed from source (because when I did it there was no ppa and the apt version was too old).

Recently I upgraded to buster but it apparently broke deluged. I spent some time trying to build deluge 2.0.3 but I ran into problems with a missing libffi which I wasn't able to get around. And basically I wound up removing all of deluge (or so I thought) and just installing the 1.3.15 version that is in the buster repo. However after installing it and trying to start it I get

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/deluged", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'deluge==1.3.15' distribution was not found and is required by the application
How can I fix this? Once I get this fixed then I'll probably spend more time trying to get to 2.0 but this same error message has been coming back no matter what I try. It seems like it's running from the right place...

Code: Select all

which deluged
/usr/bin/deluged
elementzero
New User
New User
Posts: 2
Joined: Sat Jan 18, 2020 4:45 am

Re: Can't get deluged to start

Post by elementzero »

Ok figured this out and it was pretty obvious I guess. Deluge 1.3.15 runs on python 2, deluge 2 runs on python 3. My default python was set to python 3 so I used update-alternatives to change it back to 2.7, it started right up.

Now to try and get deluge 2 installed.
Post Reply