Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 Migration and Deluge 2.x support #23

Open
shadowbq opened this issue Sep 12, 2019 · 11 comments
Open

Python3 Migration and Deluge 2.x support #23

shadowbq opened this issue Sep 12, 2019 · 11 comments

Comments

@shadowbq
Copy link

Its time to support Deluge 2.x and Python 3. Python 2.x is dead..

https://pythonclock.org/ -- 01 Jan 2020
python/devguide#344

@nicklan
Copy link
Owner

nicklan commented Oct 15, 2019

I'm not really working on this plugin much anymore due to lack of time. PR's are welcome (i'll be better about review+merge)

@akxer
Copy link

akxer commented Apr 26, 2020

It does not look like the migration guide on the Deluge website is complete. I tried building the package using their migration guide using Python3.6. The egg was created but the plugin did not enable. Digging deeper it said that the core module is missing from the plugin.

It could be I have missed something. I'll update here if I can fix it

@Daniel-Marynicz
Copy link
Contributor

Daniel-Marynicz commented Jul 18, 2020

@nicklan I created a new pull request #24 for this issue.

Current appearance on my Ubuntu 20.04 :)
Zaznaczenie_0139

@akxer
Copy link

akxer commented Jul 19, 2020

I tried it too, it's working wonderfully. Thanks, @Daniel-Marynicz for the hard work.

@alpe12
Copy link

alpe12 commented Jul 29, 2020

I get this error when trying to enable the plugin on my Odroid N2 (ubuntu minimal) via Windows 10:

21:13:26.822 [ERROR ][deluge.pluginmanagerbase :1469] Namespace Gtk not available
Traceback (most recent call last):
File "/media/disk/temp/deluge/deluge/pluginmanagerbase.py", line 148, in enable_plugin
instance = cls(plugin_name.replace('-', '_'))
File "/media/disk/.config/deluge/plugins/Pieces-0.6-py3.8.egg/pieces/init.py", line 46, in init
from .core import Core as _plugin_cls
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "", line 259, in load_module
File "/media/disk/.config/deluge/plugins/Pieces-0.6-py3.8.egg/pieces/core.py", line 49, in
from .colors import Colors
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "", line 259, in load_module
File "/media/disk/.config/deluge/plugins/Pieces-0.6-py3.8.egg/pieces/colors.py", line 40, in
from .color import Color
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "", line 259, in load_module
File "/media/disk/.config/deluge/plugins/Pieces-0.6-py3.8.egg/pieces/color.py", line 42, in
gi.require_version("Gtk", "3.0")
File "/usr/lib/python3/dist-packages/gi/init.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

@Daniel-Marynicz
Copy link
Contributor

You need install python3-gi and gtk3 bindings
probably with command

sudo apt install python3-gi gobject-introspection gir1.2-gtk-3.0

@dredkin
Copy link

dredkin commented Dec 8, 2020

Now I can see that Deluge 2.x support is integrated in the sources. I've built the .egg from this repository and it works fine with my Deluge client 2.0.3 on Windows.
SI I guess the time has come to make a new release, put it into https://github.com/nicklan/Deluge-Pieces-Plugin/downloads and update the info about 2.x compatibility on the https://dev.deluge-torrent.org/wiki/Plugins page.

If I wouldn't miss this plugin so much on 2.x that I decided to migrate it myself I'd never go to this page and wouldn't read the compatibility already implemented.

@jnqnfe
Copy link
Contributor

jnqnfe commented Aug 16, 2021

Please do update the wiki.

@UnPossible-Me
Copy link

Hey guys,
I don't want to rush things along, but it's been awhile since an update, and I can not for the life of me find even a test build for sorts for Deluge 2.x.
The downloads page, deluge forum and website are all at v0.5

@Daniel-Marynicz or @dredkin, could either of you share your .egg in the meanwhile?

@alpe12
Copy link

alpe12 commented Jan 3, 2022

Pieces-0.6-py3.8.zip

You need this too:

You need install python3-gi and gtk3 bindings probably with command

sudo apt install python3-gi gobject-introspection gir1.2-gtk-3.0

@UnPossible-Me
Copy link

Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants