[Plugin] YaRSS2 - RSS plugin with GTKUI support

Suggest, post, or discuss plugins for Deluge
kino77
New User
New User
Posts: 2
Joined: Sat Jun 01, 2024 6:44 pm

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by kino77 »

mhertz wrote: Sun Jun 02, 2024 7:31 am Hi :)

Take newest release in newest python offered, rename to match your python I.e 3.12 here(or simply remove 'pyx.x' part entirely), done.

There was a change added to deluge some years ago, negating need for this(python version ignored), but certain call used by yarss2('pkg_resources.require("YaRSS2")[0]') trips this up unfortunately, so still need this above mentioned workaround(or rebuild, but easier merely rename, which almost always works same). For the most popular plugins, I believe only this needing this.
Thank you! You've provided a lot of help to lots of folks, myself included, over the years. I've learned so much from your posts on a bunch of topics!

I have tried that, but the same behavior occurs - I check the box and it's immediately unchecked without being enabled.

I get all this from the logs, if it's helpful:

Code: Select all

2024-06-02 14:20:13,558 DEBG 'watchdog-script' stderr output:
Unhandled error in Deferred:

2024-06-02 14:20:13,559 DEBG 'watchdog-script' stderr output:

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/deluge/plugins/WebUi-0.2-py3.12.egg/deluge_webui/core.py", line 112, in set_config

  File "/usr/lib/python3.12/site-packages/deluge/plugins/WebUi-0.2-py3.12.egg/deluge_webui/core.py", line 88, in restart_server

  File "/usr/lib/python3.12/site-packages/twisted/internet/defer.py", line 623, in addCallback
    return self.addCallbacks(callback, callbackArgs=args, callbackKeywords=kwargs)
  File "/usr/lib/python3.12/site-packages/twisted/internet/defer.py", line 536, in addCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python3.12/site-packages/twisted/internet/defer.py", line 1078, in _runCallbacks
    current.result = callback(  # type: ignore[misc]
  File "/usr/lib/python3.12/site-packages/deluge/plugins/WebUi-0.2-py3.12.egg/deluge_webui/core.py", line 48, in _on_stop

  File "/usr/lib/python3.12/site-packages/deluge/plugins/WebUi-0.2-py3.12.egg/deluge_webui/core.py", line 76, in start_server

  File "/usr/lib/python3.12/site-packages/deluge/ui/web/server.py", line 735, in start
    self.start_normal()
  File "/usr/lib/python3.12/site-packages/deluge/ui/web/server.py", line 743, in start_normal
    self.socket = reactor.listenTCP(self.port, self.site, interface=self.interface)
  File "/usr/lib/python3.12/site-packages/twisted/internet/posixbase.py", line 364, in listenTCP
    p.startListening()
  File "/usr/lib/python3.12/site-packages/twisted/internet/tcp.py", line 1348, in startListening
    raise CannotListenError(self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on 0.0.0.0:8112: [Errno 98] Address already in use.
mhertz
Moderator
Moderator
Posts: 2330
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by mhertz »

That so kind of you to say my friend, thank you! :)

Sure helpful buddy, and means you have both webui plugin and deluge-web service enabled simultaneously(so last one loaded fails binding localhost:8112), so disable one of them.

@all, there's a webui error shown(unrelated to above), which I previously uploaded fixed build for, but not important as no webui support anyway, and so my build just correctly listed not being supported on webui lol, so just ignore.

Edit: @kino77, You sound like a bright fellow(posting logs etc), but just in case then here follows instructions(and anyhow can help others possibly): 'sudo systemctl stop deluge-web' , and then start deluge and disable webui plugin, and re-enable deluge-web service with 'sudo systemctl start deluge-web'. Alternatively: 'sudo systemctl disable --now deluge-web' to stop+disable deluge-web service while keeping webui plugin enabled.
shinger
Seeder
Seeder
Posts: 134
Joined: Sat Jun 05, 2010 1:02 pm

Re: Installing RSS2 Plugin

Post by shinger »

mhertz wrote: Wed Aug 23, 2023 5:00 pm Unfortunately yarss2 doesn't feature webUI management support currently, and there is a bug I see with regards to your posted error message as you correctly found. I made a fixed build and uploaded underneath, but when fixed, then it only will avoid that error message, and let you now enable/disable from webUI if wanted, and show webUI preferences page merely stating "The YaRSS2 plugin must be managed through the GTK UI client.", so not really anything important, but regardless.

YaRSS2-2.1.5.egg

Btw, for feature reference, then please post yarss2 related questions/feedback to it's official forum thread thanks.

Edit: Merged threads.
Thanks. I noticed it myself that YaRSS2 would work, but i was unable to change settings or see the regular expression window. That version of the plugin fixed the issue.

Also confirm that it is running good on Ubuntu 24.04 with python version.

Code: Select all

<USER>@<SYSTEM>:~# python3 -V
Python 3.12.3
<USER>@<SYSTEM>:~# cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
===============================================================
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 24.04 LTS
Deluge: v2.1.2
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
Wildly0815
New User
New User
Posts: 1
Joined: Sun Aug 18, 2024 8:25 am

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by Wildly0815 »

Hello,

I'm using the 1.4.3 version of yarss2. My Feed isn't updating since a few days (yarss > feeds > last update). If I do a request to the feed works on the browser and it takes ~22sec to load. I guess it runs into some sort of timeout? Can I modify the timeout somewhere?
Ninelpienel
New User
New User
Posts: 2
Joined: Tue Aug 27, 2024 2:43 pm

Re: Deluge Windows Builds

Post by Ninelpienel »

So there is no build of Deluge for Windows that doesn't crash all the time and supports YaRSS2 at the same time?

Mod Note: Moved from viewtopic.php?p=238544#p238544 //ambipro
User avatar
ambipro
Moderator
Moderator
Posts: 669
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by ambipro »

Ninelpienel wrote: Tue Aug 27, 2024 3:50 pm So there is no build of Deluge for Windows that doesn't crash all the time and supports YaRSS2 at the same time?
Please put your questions regarding YaRSS in the appropriate place, as I said the plugins forum is where you would direct questions regarding plugin compatibility with versions of Deluge.
tarulia
New User
New User
Posts: 1
Joined: Sat Feb 08, 2025 5:52 am

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by tarulia »

sigh
Solved with exactly what I was thinking while writing this... it seems the eggs are in fact bound to whatever Python version they were built for. I cloned the repo and built the egg on python3.12 (which was surprisingly painless and uneventful), and after manually removing the plugin from both server and client (why can the "Plugin Manager" install them but not uninstall them too...?), and reinstalling the 3.12 egg, it's loading just fine.

---

I could use a tip getting this plugin running on the LinuxServer.io Docker container.

I installed the plugin through the Thin Client UI, and I confirmed the YaRSS2-2.1.5-py3.11.egg has been copied to the container's config/plugins directory.

However, when trying to enable it, it immediately turns back off and the Deluge/Container log is showing this:

Code: Select all

2025-02-08 05:38:20.869683+00:0006:38:20 [INFO    ][deluge.core.rpcserver         :1672] Deluge Client connection made from: 192.168.0.10:38062
2025-02-08 05:38:47.687308+00:0006:38:47 [ERROR   ][deluge.pluginmanagerbase      :1672] Unable to instantiate plugin 'YaRSS2' from '/config/plugins/YaRSS2-2.1.5-py3.11.egg'!
2025-02-08 05:38:47.688964+00:0006:38:47 [ERROR   ][deluge.pluginmanagerbase      :1672] The 'YaRSS2' distribution was not found and is required by the application
2025-02-08 05:38:47.689034+00:00Traceback (most recent call last):
2025-02-08 05:38:47.689055+00:00File "/usr/lib/python3.12/site-packages/deluge/pluginmanagerbase.py", line 148, in enable_plugin
2025-02-08 05:38:47.689074+00:00instance = cls(plugin_name.replace('-', '_'))
2025-02-08 05:38:47.689092+00:00^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-08 05:38:47.689123+00:00File "/config/plugins/YaRSS2-2.1.5-py3.11.egg/yarss2/__init__.py", line 41, in __init__
2025-02-08 05:38:47.689141+00:00load_libs()
2025-02-08 05:38:47.689158+00:00File "/config/plugins/YaRSS2-2.1.5-py3.11.egg/yarss2/__init__.py", line 30, in load_libs
2025-02-08 05:38:47.689179+00:00egg = pkg_resources.require("YaRSS2")[0]
2025-02-08 05:38:47.689214+00:00^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-08 05:38:47.689234+00:00File "/usr/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1062, in require
2025-02-08 05:38:47.689255+00:00needed = self.resolve(parse_requirements(requirements))
2025-02-08 05:38:47.689274+00:00^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-08 05:38:47.689324+00:00File "/usr/lib/python3.12/site-packages/pkg_resources/__init__.py", line 889, in resolve
2025-02-08 05:38:47.689345+00:00dist = self._resolve_dist(
2025-02-08 05:38:47.689363+00:00^^^^^^^^^^^^^^^^^^^
2025-02-08 05:38:47.689383+00:00File "/usr/lib/python3.12/site-packages/pkg_resources/__init__.py", line 930, in _resolve_dist
2025-02-08 05:38:47.689441+00:00raise DistributionNotFound(req, requirers)
2025-02-08 05:38:47.689467+00:00pkg_resources.DistributionNotFound: The 'YaRSS2' distribution was not found and is required by the application
I googled around a bit and from what I can tell, this error happens when setuptools is not installed. However, checking the installed packages, this is already present (Deluge depends on it):

Code: Select all

root@d7042a935069:/# apk list -i | grep setup
WARNING: opening from cache http://dl-cdn.alpinelinux.org/alpine/edge/main: No such file or directory
WARNING: opening from cache http://dl-cdn.alpinelinux.org/alpine/edge/community: No such file or directory
py3-setuptools-70.3.0-r0 x86_64 {py3-setuptools} (MIT) [installed]
py3-setuptools-pyc-70.3.0-r0 x86_64 {py3-setuptools} (MIT) [installed]
Anybody got a clue what else could be missing?

Alpine (and therefore the Container) is on Python 3.12.8:

Code: Select all

root@d7042a935069:/# python --version
Python 3.12.8
But that should still easily be able to run 3.11 code, no? Or is setuptools strictly only installing the packages for 3.11, and that's why it's not found on 3.12? I never used it so... yeah, no idea how it works.
Last edited by tarulia on Sat Feb 08, 2025 7:45 am, edited 1 time in total.
User avatar
ambipro
Moderator
Moderator
Posts: 669
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by ambipro »

This plugin is not stable or recommended on the latest versions of Deluge. It just needs a lot of refactoring and bug fixes to be compatible, otherwise it crashes and causes a bunch of stack traces.
mhertz
Moderator
Moderator
Posts: 2330
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by mhertz »

If wanting use still despite the good ambipro's warnings, then rename plugin to 3.12 on docker, or remove entirely the py-x.x part.

You can nearly always just rename instead of rebuild and btw, not even needed for vast majority plugins if using deluge 2.0.4 and up though indeed yarss2 specifically breaks that code-change, with a specific line I talked about previously in this thread.

Hope helps.
tarulia
New User
New User
Posts: 1
Joined: Sat Feb 08, 2025 5:52 am

Re: [Plugin] YaRSS2 - RSS plugin with GTKUI support

Post by tarulia »

ambipro wrote: Sat Feb 08, 2025 12:03 pm This plugin is not stable or recommended on the latest versions of Deluge.
Thanks for the headsup. I haven't seen any crashes yet, but I'll keep it in mind.
mhertz wrote: Sun Feb 09, 2025 1:08 pm You can nearly always just rename instead of rebuild
Good to know. Luckily rebuilding was fairly straight forward so at least it's a "clean" build :D


On that note, how active is development on this plugin still? Is the bitbucket repo the latest development? The last commit is from 2021 which makes me a bit worried on that end 😅
Are there any alternatives?
Last edited by tarulia on Sun Feb 16, 2025 11:20 pm, edited 1 time in total.
Post Reply