[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: 2339
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: 723
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: 723
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.
hacked
New User
New User
Posts: 2
Joined: Wed Feb 25, 2026 6:50 am

Re: [Plugin] ltConfig v2.0.0

Post by hacked »

With pkg_resources now removed from setuptools, ltConfig fails to init on startup.

Code: Select all

06:40:43 [ERROR   ][deluge.pluginmanagerbase      :1672] Unable to instantiate plugin 'ltConfig' from 'ltConfig'!
06:40:43 [ERROR   ][deluge.pluginmanagerbase      :1672] No module named 'pkg_resources'
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/deluge/pluginmanagerbase.py", line 200, in enable_plugin
    instance = cls(plugin_name.replace('-', '_'))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/plugins/ltConfig-2.0.0.egg/ltconfig/__init__.py", line 46, in __init__
    from .core import Core as _plugin_cls
  File "/config/plugins/ltConfig-2.0.0.egg/ltconfig/core.py", line 46, in <module>
    from .common.plugin import (
  File "/config/plugins/ltConfig-2.0.0.egg/ltconfig/common/plugin.py", line 38, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
User avatar
ambipro
Moderator
Moderator
Posts: 723
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: [Plugin] ltConfig v2.0.0

Post by ambipro »

Please see this thread, which addresses this issue. You will need to revert the container you're using or revert setuptools prior to 82 when pkg_resources was removed.

viewtopic.php?t=57532

There has already been work done on this, and it is not isolated to ltConfig specifically, the whole plugin system relied on it.
hacked
New User
New User
Posts: 2
Joined: Wed Feb 25, 2026 6:50 am

Re: [Plugin] ltConfig v2.0.0

Post by hacked »

ambipro wrote: Wed Feb 25, 2026 9:19 am Please see this thread, which addresses this issue. You will need to revert the container you're using or revert setuptools prior to 82 when pkg_resources was removed.

viewtopic.php?t=57532

There has already been work done on this, and it is not isolated to ltConfig specifically, the whole plugin system relied on it.
This is not related to that thread. I'm running a patched deluge with pluginmanager patched to not require pkg_resources.

However if you look at the log snippet I pasted, ltConfig itself depends on pkg_resources in own init function.

Other plugins load perfectly fine

Code: Select all

  File "/config/plugins/ltConfig-2.0.0.egg/ltconfig/common/plugin.py", line 38, in <module>
    import pkg_resources
User avatar
ambipro
Moderator
Moderator
Posts: 723
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: [Plugin] ltConfig v2.0.0

Post by ambipro »

I maintain ltConfig, do you have discord or session? I can probably get you a working version of the latest if you tell me what exactly you have done.

@zak.ary on Discord

PM me for session
Post Reply