[Plugin] ltConfig v2.0.0

Suggest, post, or discuss plugins for Deluge
ludog
New User
New User
Posts: 1
Joined: Mon Sep 02, 2024 3:07 am

can't enable ltConfig, "ModuleNotFoundError: No module named 'core'"

Post by ludog »

Deluge download speed is very slow for me, ~100K/s, when my internet speed test shows ~50Mb/s. I'm trying to install ltConfig to improve this. I cloned the github repo, and ran `python setup.py bdist_egg`, which created an egg file. Then opened Deluge and went to add new plugin and selected this egg file. But when I try to click the 'enable' icon beside ltConfig, nothing happens, and I see on the terminal where I launched Deluge, the error

Code: Select all

  File "/usr/lib/python3/dist-packages/deluge/pluginmanagerbase.py", line 148, in enable_plugin
    instance = cls(plugin_name.replace('-', '_'))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/louis/.config/deluge/plugins/ltConfig-0.3.1-py3.12.egg/ltconfig/__init__.py", line 46, in __init__
    from core import Core as _plugin_cls
ModuleNotFoundError: No module named 'core'
Versions I'm using:

Code: Select all

$ deluge --version
deluge 2.1.2.dev0
libtorrent: 2.0.10.0
Python: 3.12.3
OS: Linux Ubuntu 24.04 noble
Last edited by mhertz on Mon Sep 02, 2024 9:59 am, edited 2 times in total.
Reason: Merged with main plugin thread.
mhertz
Moderator
Moderator
Posts: 2305
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: can't enable ltConfig, "ModuleNotFoundError: No module named 'core'"

Post by mhertz »

That means deluge 1.x plugin.

The default branch(master) of ltconfig is for deluge 1.x. Clone/build the 2.x branch, so add '-b 2.x' to the git clone command-line.

However, don't need build it, unless wanted, as a release available on the github page. Normally often need rename the python version to match, but there's no python version in that release, so works out of the box even.

Hope helps.
User avatar
ambipro
Moderator
Moderator
Posts: 629
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: [Plugin] ltConfig v2.0.0

Post by ambipro »

I've created a thread explaining some of the main options that I've found effective at improving performance.

viewtopic.php?t=56921
bebound
New User
New User
Posts: 2
Joined: Wed Jan 01, 2025 8:06 am

Re: [Plugin] ltConfig v2.0.0

Post by bebound »

Is this plugin compatible with this docker image: lscr.io/linuxserver/deluge:latest ?
I tried installing it in the web UI, but an error occurred. Manually placing it in the plugin folder had no effect.

Code: Select all

deluge  | 07:52:57 [ERROR   ][deluge.ui.web.json_api     :1672] 'NoneType' object has no attribute 'call'
deluge  | Traceback (most recent call last):
deluge  |   File "/usr/lib/python3.12/site-packages/deluge/ui/web/json_api.py", line 157, in _handle_request
deluge  |     result = self._exec_local(method, params, request)
deluge  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
deluge  |   File "/usr/lib/python3.12/site-packages/deluge/ui/web/json_api.py", line 119, in _exec_local
deluge  |     return meth(*params)
deluge  |            ^^^^^^^^^^^^^
deluge  |   File "/usr/lib/python3.12/site-packages/deluge/ui/web/json_api.py", line 950, in upload_plugin
deluge  |     d = client.core.upload_plugin(filename, plugin_data)
deluge  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
deluge  |   File "/usr/lib/python3.12/site-packages/deluge/ui/client.py", line 548, in __call__
deluge  |     return self.daemon.call(self.base, *args, **kwargs)
deluge  |            ^^^^^^^^^^^^^^^^
deluge  | AttributeError: 'NoneType' object has no attribute 'call'
User avatar
ambipro
Moderator
Moderator
Posts: 629
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: [Plugin] ltConfig v2.0.0

Post by ambipro »

Yes, it works with that image. You'll need to place it in the plugins directory and enable it.

If you are using the thin client, you'll also need it in your local plugins directory to interact with it.

The error you show seems to indicate uploading the plugin over the webui isn't working, but once again if you just put it in your plugins directory it will be listed in plugins and you can enable it.
bebound
New User
New User
Posts: 2
Joined: Wed Jan 01, 2025 8:06 am

Re: [Plugin] ltConfig v2.0.0

Post by bebound »

ambipro wrote: Wed Jan 01, 2025 8:19 am Yes, it works with that image. You'll need to place it in the plugins directory and enable it.

If you are using the thin client, you'll also need it in your local plugins directory to interact with it.

The error you show seems to indicate uploading the plugin over the webui isn't working, but once again if you just put it in your plugins directory it will be listed in plugins and you can enable it.
Thanks. Putting the egg file to `/config/plugins/` works.
Post Reply