yarss2 egg for python 3.10

Suggest, post, or discuss plugins for Deluge
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: yarss2 egg for python 3.10

Post by mhertz »

I tested this, and keep in mind if you rename the plugin while deluge running, despite pressing the 'refresh' button, then will not work and you have to restart deluge, for some reason the refresh button doesn't work right. Then when renaming off the python version, then also only having just 'py3' as version breaks it, just adding for completeness, as don't think you did that. Anyway, all 3 python versions of yarss2 provided by bendikro, works in deluge 2.1.1 when renamed correctly(and deluge restarted, if needed). Tested in win10 VM, both standalone/classic mode, and thinclient mode to a linux py3.10 daemon.
marcun
New User
New User
Posts: 6
Joined: Wed Mar 22, 2023 12:31 am

Re: yarss2 egg for python 3.10

Post by marcun »

Thanks again for your help!! This might be a synology thing and an issue with the synocommunity version.

The deluge version is 2.1.1, so I downloaded the "YaRSS2-2.1.1-py3.7.egg" from https://bitbucket.org/bendikro/deluge-y ... downloads/ and removed the "-py3.7" and installed it. I also made sure the same (and only version) of the egg was in my Windows deluge config folder (\AppData\Roaming\deluge\plugins).

It appears the issue seems to be "No module named 'chardet'"

Here is what I believe to be the relevant information from my log file:

21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/requests'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/dateutil'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/defusedxml'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/beautifulsoup/py3k'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/atoma'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/html5lib'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/webencodings'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/urllib3/src'
21:47:55 [INFO ][yarss2.util.logger :40 ] YaRSS2.__init__:35: Appending to sys.path: '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/certifi'
21:47:56 [ERROR ][deluge.pluginmanagerbase :153 ] Unable to instantiate plugin 'YaRSS2' from '/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg'!
21:47:56 [ERROR ][deluge.pluginmanagerbase :1512] No module named 'chardet'
Traceback (most recent call last):
File "/volume1/@appstore/deluge/env/lib/python3.10/site-packages/deluge/pluginmanagerbase.py", line 148, in enable_plugin
instance = cls(plugin_name.replace('-', '_'))
File "/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/__init__.py", line 41, in __init__
from core import Core as CorePluginClass
File "/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/core.py", line 15, in <module>
from yarss2.rssfeed_scheduler import RSSFeedScheduler
File "/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/rssfeed_scheduler.py", line 20, in <module>
from yarss2.torrent_handling import TorrentHandler
File "/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/torrent_handling.py", line 12, in <module>
import requests
File "/volume1/@appdata/deluge/plugins/YaRSS2-2.1.1.egg/yarss2/include/requests/requests/__init__.py", line 44, in <module>
import chardet
ModuleNotFoundError: No module named 'chardet'

Trying to figure out how to install chardet now over ssh to see if that fixes it...
marcun
New User
New User
Posts: 6
Joined: Wed Mar 22, 2023 12:31 am

Re: yarss2 egg for python 3.10

Post by marcun »

Well I did that wrong... installing chardet via root (sudo -i) broke the whole thing and I ended up having to uninstall/reinstall both Deluge and python 3.10... lol.
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: yarss2 egg for python 3.10

Post by mhertz »

Thanks! I don't have time now, but that seems indeed a syno problem. However, I think I can include certifi into the plugin, if is python only module which I have to check. Strange because I specifically remember that deluge main syno packager added a fix to a ticket I posted there, which used certifi specifically but regardless. And I'm an idiot, you talk about chardet lol, sorry. I don't have time today, but this evening I can build a version of yarss2 including chardet I'm pretty sure. I can forward your report also there later probably(syno github). Will post back later.
marcun
New User
New User
Posts: 6
Joined: Wed Mar 22, 2023 12:31 am

Re: yarss2 egg for python 3.10

Post by marcun »

Thanks! And absolutely no rush!! I greatly appreciate your assistance!! I always learn a little bit more every time I troubleshoot these kinds of issues, so that's always a plus!
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: yarss2 egg for python 3.10

Post by mhertz »

I know what you mean, me too, and you're welcome mate :)

Here you go: YaRSS2-2.1.5.egg (chardet included)

Reported on syno github here: https://github.com/SynoCommunity/spksrc/issues/5674

Thanks for reporting.
marcun
New User
New User
Posts: 6
Joined: Wed Mar 22, 2023 12:31 am

Re: yarss2 egg for python 3.10

Post by marcun »

Yay! It worked! Thanks again so much for your assistance!! I definitely wouldn't have solved this one without your help!!
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: yarss2 egg for python 3.10

Post by mhertz »

Thanks bro likewise for your kind message, appreciated :)
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: yarss2 egg for python 3.10

Post by mhertz »

@marcun, the deluge package-dev th0ma7 kindly made a PR and asked me for testing the built package to make sure. so I don't think he understood i'm not a syno-user and just forwarded the report, but anyway, so I wanted to ask if would be possibly for you to test and report back, if okay, and just whenever of-course, if can. Just wanted to forward the message, and thanks regardless :)

Link to test-builds: https://github.com/SynoCommunity/spksrc ... 4524786580

Edit: @marcun not needed anyway bro, as the fix merged now by th0ma7. Actually this wasen't even a syno issue afterall I found, as chardet is an optional dep apparently, as per upstream source files and docs, but several distro's e.g. arch and ubuntu just get that wrong, and so chardet would be suited to be included in plugin from the author, which i'll probably post there on his repo one of these days, but anyway fix still merged, so thanks again to th0ma7 and you again for reporting :)
Post Reply