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

Python 3.10 #32

Closed
Cochrane-Server opened this issue Apr 30, 2022 · 4 comments
Closed

Python 3.10 #32

Cochrane-Server opened this issue Apr 30, 2022 · 4 comments
Labels

Comments

@Cochrane-Server
Copy link

I've setup Organizr using snap on Arch and am trying to integrate Deluge into the homepage. It's directed me to download the WebAPI plugin, but I'm running python 3.10.

Should the latest 3.8 plugin version still work or does it need updating for 3.10?

I tried adding various versions from Deluge Web Admin and it fails with no errors.

@idlesign
Copy link
Owner

idlesign commented May 4, 2022

You may want to start with a simple .egg file rename mentioned here:

  1. Add support for Deluge 2 - python 3.8 #27 (comment)
  2. Add support for Deluge 2 - python 3.8 #27 (comment)

@Cochrane-Server
Copy link
Author

Thanks Igor - I tried the newer 3.8 version, tried renaming to 3.10, restarted services, tried adding via web admin and via plugins directory.

When adding via plugins directory it shows up in preferences but cannot be enabled.

[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.core.rpcserver :310 ] RPC dispatch core.enable_plugin
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.core.rpcserver :435 ] Registering method: webapi.get_config
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.core.rpcserver :435 ] Registering method: webapi.set_config
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.plugins.pluginbase :38 ] CorePlugin initialized..
[2022-05-04 11:34:03] 11:34:03 [INFO ][webapi.core :20 ] Enabling WebAPI plugin CORE ...
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.configmanager :94 ] Getting config: webapi.conf
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.config :179 ] Setting key "enable_cors" to: False (of type: <class 'bool'>)
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.config :179 ] Setting key "allowed_origin" to: [] (of type: <class 'list'>)
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.config :434 ] Config /srv/deluge/.config/deluge/webapi.conf version: 1.1 loaded: {'enable_cors': True, 'allowed_origin': []}
[2022-05-04 11:34:03] 11:34:03 [INFO ][webapi.core :57 ] Patching webui for CORS...
[2022-05-04 11:34:03] 11:34:03 [ERROR ][deluge.pluginmanagerbase :195 ] Failed to start plugin: WebAPI
[2022-05-04 11:34:03] Traceback: <class 'KeyError'>: 'JSON'
[2022-05-04 11:34:03] /usr/lib/python3.10/site-packages/twisted/internet/defer.py:191:maybeDeferred
[2022-05-04 11:34:03] /usr/lib/python3.10/site-packages/deluge/plugins/init.py:27:enable
[2022-05-04 11:34:03] /srv/deluge/.config/deluge/plugins/WebAPI-0.4.0-py3.10.egg/webapi/core.py:26:enable
[2022-05-04 11:34:03] /srv/deluge/.config/deluge/plugins/WebAPI-0.4.0-py3.10.egg/webapi/core.py:59:patch_web_ui
[2022-05-04 11:34:03] /usr/lib/python3.10/site-packages/deluge/component.py:490:get
[2022-05-04 11:34:03]
[2022-05-04 11:34:03] 11:34:03 [INFO ][webapi.core :29 ] Disabling WebAPI plugin CORE ...
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.component :301 ] Deregistering Component: CorePlugin.WebAPI
[2022-05-04 11:34:03] 11:34:03 [WARNING ][deluge.pluginmanagerbase :248 ] Problems occurred disabling plugin: WebAPI
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.pluginmanagerbase :249 ] list.remove(x): x not in list
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.core.rpcserver :539 ] intevents: {2: ['ConfigValueChangedEvent', 'PluginEnabledEvent', 'PluginDisabledEvent', 'TorrentStateChangedEvent', 'TorrentRemovedEvent', 'TorrentAddedEvent']}
[2022-05-04 11:34:03] 11:34:03 [DEBUG ][deluge.core.rpcserver :543 ] Emit Event: PluginDisabledEvent ['WebAPI']

@Cochrane-Server
Copy link
Author

I also tried this in a docker-compose container with the 3.8 and 3.10 egg and it failed.

@Cochrane-Server
Copy link
Author

I deleted WebAPI.conf and .backup and then re-tried adding the 3.8 egg manually and it's working now after a few restarts.

Thanks for helping me.

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

No branches or pull requests

2 participants