Page 1 of 1

TrueNAS plugin missing all default plugins

Posted: Fri Oct 29, 2021 11:21 pm
by Wolfeman0101
There are no plugins at all.

Re: TrueNAS plugin missing all default plugins

Posted: Sat Oct 30, 2021 12:06 am
by mhertz
Probably a mismatch between python version listed in plugin-filenames and actual python version.

If so, then two possibilities for fixing - either find the installed plugins and rename python version of filenames to match(or remove that part), or override python version checking completely in deluge, which was supposed to be done already for deluge2, but doesn't, hence I submitted PR to fix this, a few days ago. Find the installed deluge dir, on regular linux it's e.g. here: '/usr/lib/python3.9/site-packages/deluge' and edit line 108 of pluginmanagerbase.py from:

Code: Select all

self.pkg_env = pkg_resources.Environment(plugin_dirs, None)
Into:

Code: Select all

self.pkg_env = pkg_resources.Environment(plugin_dirs, None, None)

So just additional ', None' added at end - the first(which was added in a deluge2 commit) overrides platform checks, and the next that we add, overrides python version checking specifically(and which that deluge2 commit was supposed to do originally).