Supplied Deluge Plugins Do Not Exist

General support for problems installing or using Deluge
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Supplied Deluge Plugins Do Not Exist

Post by johnnyg »

Not sure about your other python dependencies, but upgrading to 2.6 won't affect Deluge.
You will probably have to reinstall Deluge to get the .egg files in the new folder (/usr/lib/pymodules/python2.6/ rather than /usr/lib/pymodules/python2.5).
teh_g
Member
Member
Posts: 21
Joined: Mon Oct 18, 2010 3:49 pm

Re: Supplied Deluge Plugins Do Not Exist

Post by teh_g »

I went ahead and uninstalled everything then installed Python 2.6 on my own.

I can't get Deluge to install via apt-get or aptitude. It will basically force me to downgrade to Python 2.5. It looks like some of the deluge-gtk dependencies (namely python-glade2 and python-notify) require Python 2.5.
JanAcc
Member
Member
Posts: 23
Joined: Mon Dec 22, 2008 1:42 am

Re: Supplied Deluge Plugins Do Not Exist

Post by JanAcc »

Hey, thanks teh_g for pointing me to this thread. Any progress on that?
I have the exact same problem here (for problem description see: http://forum.deluge-torrent.org/viewtop ... 61#p143261).

What I tried now is:
[*]leaving Python 2.5 installed on the system
[*]removing Deluge
[*]installing Python 2.6
[*]installing Deluge again

Though plugins still don't show up. Here is some output after I applied the procedure above. Maybe someone can make sense out of that...

Code: Select all

$ find /usr -name '*.egg'
/usr/lib/pymodules/python2.5/deluge/plugins/WebUi-0.1-py2.6.egg
/usr/lib/pymodules/python2.5/deluge/plugins/Label-0.1-py2.6.egg
/usr/lib/pymodules/python2.5/deluge/plugins/Execute-1.2-py2.6.egg
/usr/lib/pymodules/python2.5/deluge/plugins/Scheduler-0.2-py2.6.egg
/usr/lib/pymodules/python2.5/deluge/plugins/Extractor-0.1-py2.6.egg
/usr/lib/pymodules/python2.5/deluge/plugins/AutoAdd-1.02-py2.6.egg
/usr/lib/pymodules/python2.5/deluge/plugins/Notifications-0.1-py2.6.egg
/usr/lib/pymodules/python2.5/deluge/plugins/Blocklist-1.2-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/WebUi-0.1-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/Label-0.1-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/Execute-1.2-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/Scheduler-0.2-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/Extractor-0.1-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/AutoAdd-1.02-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/Notifications-0.1-py2.6.egg
/usr/lib/pymodules/python2.6/deluge/plugins/Blocklist-1.2-py2.6.egg
/usr/share/pyshared/deluge/plugins/WebUi-0.1-py2.6.egg
/usr/share/pyshared/deluge/plugins/Label-0.1-py2.6.egg
/usr/share/pyshared/deluge/plugins/Execute-1.2-py2.6.egg
/usr/share/pyshared/deluge/plugins/Scheduler-0.2-py2.6.egg
/usr/share/pyshared/deluge/plugins/Extractor-0.1-py2.6.egg
/usr/share/pyshared/deluge/plugins/AutoAdd-1.02-py2.6.egg
/usr/share/pyshared/deluge/plugins/Notifications-0.1-py2.6.egg
/usr/share/pyshared/deluge/plugins/Blocklist-1.2-py2.6.egg

Code: Select all

$ python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()'
/usr/lib/python2.5/site-packages

Code: Select all

$ ls /usr/lib/python2.5/site-packages | grep deluge
gives an empty result.

If I try to remove Python 2.5, like teh_g mentioned, all hell breaks loose because there are a lot of package dependencies on that one... I didn't dare to try that.
teh_g
Member
Member
Posts: 21
Joined: Mon Oct 18, 2010 3:49 pm

Re: Supplied Deluge Plugins Do Not Exist

Post by teh_g »

Yeah, I got the same thing as you JanAcc. There are too many dependencies on python 2.5 to get the 2.6 plugins to work. It looks like we need a developer to go through and check the dependencies to see if we can get python 2.6 on our system (and maybe clearly state somewhere that you need 2.6 to run Deluge and the plugins) or we need them to make us some nice python 2.5 compatible plugins.

I had tried getting python 2.6 working, but I think the dependencies break if I get everything I need for Deluge.
JanAcc
Member
Member
Posts: 23
Joined: Mon Dec 22, 2008 1:42 am

Re: Supplied Deluge Plugins Do Not Exist

Post by JanAcc »

teh_g wrote:I had tried getting python 2.6 working, but I think the dependencies break if I get everything I need for Deluge.
Well, Python 2.6 installation goes through smoothly if I leave 2.5 on the system... The only thing is that it looks like Deluge is still trying to load the *.egg files with Python 2.5. However the deluge installation created *.egg's in /usr/lib/pymodules/python2.6/deluge/plugins now, too.

If I

Code: Select all

/usr/lib/pymodules/python2.5$ sudo rm -R deluge*

and start deluged afterwards it will just throw errors:

Code: Select all

$ deluged -L info -d
Traceback (most recent call last):
  File "/usr/bin/deluged", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: deluge==1.3.0
If I do the same on /usr/lib/pymodules/python2.6 deluged still starts, though not loading the plugins.
teh_g
Member
Member
Posts: 21
Joined: Mon Oct 18, 2010 3:49 pm

Re: Supplied Deluge Plugins Do Not Exist

Post by teh_g »

I couldn't even get Deluged installed. I think it was because I am using the Web Console which needs the Deluge GTK which needs a python module that doesn't work with 2.6.
JanAcc
Member
Member
Posts: 23
Joined: Mon Dec 22, 2008 1:42 am

Re: Supplied Deluge Plugins Do Not Exist

Post by JanAcc »

I think it's because of WebUI. I have GTK-UI installed on the Debian system and no issue with that. But if I try to install WebUI it wants to upgrade Python 2.5 and I guess this is triggering a lot of dependencies...
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Supplied Deluge Plugins Do Not Exist

Post by johnnyg »

Building python 2.5 compatible versions of the plugins isn't too hard:
  1. Grab 1.3.0's tarball
  2. Extract it and change into the directory
  3. Run

    Code: Select all

    python setup.py build_plugins
You should then see the .eggs under deluge/plugins/
teh_g
Member
Member
Posts: 21
Joined: Mon Oct 18, 2010 3:49 pm

Re: Supplied Deluge Plugins Do Not Exist

Post by teh_g »

johnnyg wrote:Building python 2.5 compatible versions of the plugins isn't too hard:
  1. Grab 1.3.0's tarball
  2. Extract it and change into the directory
  3. Run

    Code: Select all

    python setup.py build_plugins
You should then see the .eggs under deluge/plugins/
Thank you so much. I compiled the plugins and placed them in ~/.config/deluge/plugins and I see them after I restarted deluge.
JanAcc
Member
Member
Posts: 23
Joined: Mon Dec 22, 2008 1:42 am

Re: Supplied Deluge Plugins Do Not Exist

Post by JanAcc »

Hey, thanks. It's working here, too. However, label plugin now keeps on forgetting the torrent labels after I restarted deluge...
Will have a look into that later.
Post Reply