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

[BUG] Telegramer does not start after updating deluge #48

Open
Lukki4 opened this issue Apr 16, 2024 · 15 comments
Open

[BUG] Telegramer does not start after updating deluge #48

Lukki4 opened this issue Apr 16, 2024 · 15 comments
Labels

Comments

@Lukki4
Copy link

Lukki4 commented Apr 16, 2024

Describe the bug
Telegramer does not start after updating deluge

Screenshots
No work

Logs
09:14:18 [ERROR ][deluge.pluginmanagerbase :1672] Unable to instantiate plugin 'Telegramer' from '/config/plugins/Telegramer-2.1.1.2-py3.11.egg'!
09:14:18 [ERROR ][deluge.pluginmanagerbase :1672] The 'Telegramer' distribution was not found and is required by the application
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/deluge/pluginmanagerbase.py", line 148, in enable_plugin
instance = cls(plugin_name.replace('-', '_'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/plugins/Telegramer-2.1.1.2-py3.11.egg/telegramer/init.py", line 64, in init
load_libs()
File "/config/plugins/Telegramer-2.1.1.2-py3.11.egg/telegramer/init.py", line 53, in load_libs
egg = pkg_resources.require("Telegramer")[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pkg_resources/init.py", line 937, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pkg_resources/init.py", line 798, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pkg_resources/init.py", line 839, in _resolve_dist
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Telegramer' distribution was not found and is required by the application

OS and Version:
OS: Linux
Deluge version: [e.g. 2.1.1]
deluge --version or deluged --version

@Lukki4 Lukki4 added the bug label Apr 16, 2024
@t0fum4n
Copy link

t0fum4n commented May 13, 2024

Here to say that I have the same issue. I think it has something to do with the python versioning, but I built an egg from source for 3.12 and it still didn't work.

@crypticviper
Copy link

I too cannot get the plugin to work with latest version of deluge. I don't see any errors logged. I manually installed the plugin but unable to enable it from the GUI. It's probably something to do with python version but I am not sure.

@ssheytanov
Copy link

Same issue for me on windows 11 - Image

@jandolejs
Copy link

Hi, same for me,
docker image: lscr.io/linuxserver/deluge 2.1.1
uploaded plugin to: /config/plugins/Telegramer-2.1.1.2-py3.11.egg
after trying to eable it in GUI, same error occured

@noam09
Copy link
Owner

noam09 commented Sep 10, 2024

Sorry it took me so long to find the time for this.

Please try this build from this release. If the WebUI plugin upload doesn't work right, you can try replacing the existing .egg file in the plugins directory with this new one.

Please let me know if it works or not.

@crypticviper
Copy link

crypticviper commented Sep 10, 2024

@noam09 thanks.

I installed plugin manually (coped to plugins directory) restarted deluge. I can see the plugin under plugins tab. However, I select and then apply/ok or close, it doesn't stay enabled. I do not see any errors in deluge container logs.

I am running binhex-deluge docker container on Unraid 6.12.13

Edit: Python version on deluge container is 3.12.4 so I used Telegramer-2.1.1.3-py3.12.egg.

@noam09
Copy link
Owner

noam09 commented Sep 10, 2024

@crypticviper when you click on the plugin name, what version of the plugin does it show as installed?
At this point, assuming the checkbox is unchecked (plugin not enabled), what logs does the container show when you check the box to enable the plugin?

@crypticviper
Copy link

Installed plugin info from deluge UI:

image

Unfortunately no useful logs are present in the container logs. I have debug logs enabled for the container. I have restarted the container several times to no avail. Also tried all kinds of browsers to see if that is an issue but doesn't seem like.

@noam09
Copy link
Owner

noam09 commented Sep 11, 2024

@crypticviper any logs at all containing the word "telegram"? Please post them here if so.

@crypticviper
Copy link

Below logs are spewed out every minute and I don't think they have anything to do with this plugin

2024-09-11 13:03:22,971 DEBG 'watchdog-script' stdout output:
[debug] Checking we can resolve name 'www.google.com' to address...
2024-09-11 13:03:23,013 DEBG 'watchdog-script' stdout output:
[debug] DNS operational, we can resolve name 'www.google.com' to address 'XXX.XXX.XXX.XXX'
[debug] Waiting for iptables chain policies to be in place...
2024-09-11 13:03:23,018 DEBG 'watchdog-script' stdout output:
[debug] iptables chain policies are in place
2024-09-11 13:03:23,024 DEBG 'watchdog-script' stdout output:
[debug] VPN IP is XXX.XXX.XXX.XXX
[debug] Deluge IP is XXX.XXX.XXX.XXX

@noam09
Copy link
Owner

noam09 commented Sep 11, 2024

@crypticviper these seem to be related to DelugeVPN. Are there zero mentions of "telegram" in the logs since the container startup? Is everything else working fine in Deluge?

@crypticviper
Copy link

@noam09 Nope, no telegramer related logs. Everything else just seems to work perfectly. I use a deluge container that has VPN stuff built in, not sure if that creates any issue? But there are absolutely no logs related to the plugin. All I see are above logs repeatedly. Enabling other plugins (which came with deluge) seems to work fine. I have not tried manual installation of any other plugin. I will probably check that and see if manual installation of plugins even works.

@noam09
Copy link
Owner

noam09 commented Sep 11, 2024

@crypticviper maybe something with the VPN stuff is interfering with the plugin? Has it worked fine in the past?

@crypticviper
Copy link

crypticviper commented Nov 24, 2024

@crypticviper maybe something with the VPN stuff is interfering with the plugin? Has it worked fine in the past?

Sorry for late response. I finally found some logs hiding in deluged.log file. Below is what it looks like.

17:45:56 [ERROR ][deluge :1672] NOTANERROR: Appending to sys.path: '/config/plugins/Telegramer-2.1.1.3-py3.12.egg/telegramer/include'
17:45:56 [ERROR ][telegramer.core :1672] 2024-11-24 17:45:56 # Telegramer: Import error - No module named 'certifi'
Traceback (most recent call last):
File "/config/plugins/Telegramer-2.1.1.3-py3.12.egg/telegramer/core.py", line 71, in
from telegram import (ReplyKeyboardMarkup, ReplyKeyboardRemove, Bot, Update)
File "/config/plugins/Telegramer-2.1.1.3-py3.12.egg/telegramer/include/telegram/init.py", line 175, in
from .bot import Bot
File "/config/plugins/Telegramer-2.1.1.3-py3.12.egg/telegramer/include/telegram/bot.py", line 103, in
from telegram.utils.request import Request
File "/config/plugins/Telegramer-2.1.1.3-py3.12.egg/telegramer/include/telegram/utils/request.py", line 33, in
import certifi
ModuleNotFoundError: No module named 'certifi'

@crypticviper
Copy link

Ok update.

I manually installed the following packages in the docker container:

  • certifi
  • requests
  • six

(and may be some more).

Now the plugin enabling works and it stays enabled. I also get the telegramer tab where I can configure the plugin.

I guess next step is to let the container maintainer know about this so that the container comes with these packages pre-installed.

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

6 participants