FreeBSD install using python3

General support for problems installing or using Deluge
joncy92
New User
New User
Posts: 8
Joined: Thu Nov 05, 2020 10:29 pm

FreeBSD install using python3

Postby joncy92 » Fri Nov 06, 2020 9:16 pm

Hi,

I've recently upgraded my FreeBSD jails for 12.2 and re-installed deluge using normal pkg install

Deluge is running fine but it's using python37 instead of python27 so half the plugins don't work.
Is there a way to force it to use python2 so I can use my plugins again?

Thanks

joncy92
New User
New User
Posts: 8
Joined: Thu Nov 05, 2020 10:29 pm

Re: FreeBSD install using python3

Postby joncy92 » Fri Nov 06, 2020 10:11 pm

Double post - I noticed a lot of plugins can use python38. I've installed python38 but how do I make deluge use that version instead?
deluged --version still reporting python 3.7 and the python38 plugins will not enable

mhertz
Compulsive Poster
Compulsive Poster
Posts: 865
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: FreeBSD install using python3

Postby mhertz » Fri Nov 06, 2020 10:38 pm

Honestly never looked into how can change default python version, i.e. if there's another method besides of-course changing 'python' symlink under /usr/bin or whereever freebsd has that, but anyway, just wanted to add that you don't have to install new python3 for plugins, but instead just download as close you can to your version installed, and if not matching exactly, then rename the x in the py3.x portion of plugin file-name(or delete the whole py3.x part from filename), before activating it in deluge. Note, the rename trick only works for deluge2 py3.x plugins, and not deluge1 py2.x.

Deluge2 do have some fallback python2 support, but the lead-author recommends using python3. To change you would need to reinstall or build yourself deluge2 and all python deps in python2 versions.

joncy92
New User
New User
Posts: 8
Joined: Thu Nov 05, 2020 10:29 pm

Re: FreeBSD install using python3

Postby joncy92 » Fri Nov 06, 2020 10:43 pm

Thanks for the tip. I installed for example AutoRemovePlus 0.6.15.
It display in the plugin list in Deluge thin client but when I check the box, it immediately unchecks itself.

I have tried deleting the .egg from the plugins folder but when I try to install an earlier version, the plugin list still shows 0.6.15

What can I do about that?

joncy92
New User
New User
Posts: 8
Joined: Thu Nov 05, 2020 10:29 pm

Re: FreeBSD install using python3

Postby joncy92 » Fri Nov 06, 2020 11:15 pm

Nvm I read your post over again and realised what you meant.
Is there no option to use plugins which were built on python2.7 then?

mhertz
Compulsive Poster
Compulsive Poster
Posts: 865
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: FreeBSD install using python3

Postby mhertz » Fri Nov 06, 2020 11:45 pm

Unfortunetly not for deluge2 in python3. Those plugins are old and need updating for gtk3 also etc, You can request an update to the author on e.g. github or whereever hosted, if not done already, or, try out yourself if you can update it, as per the doc here: https://deluge.readthedocs.io/en/latest ... lugin.html.

There is also sometimes forks that is updated, like labelplus etc, but usually that is announced in the relevant plugin thread if such exist.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 13 guests