SABnzbd+ and feedparser

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Running TrueNAS-12.0-U2.1. SABnzbd+ is installed on a 12.2-RELEASE-p4 jail.

I have sabnzbdplus-3.0.2,1 installed along with py37-feedparser-6.0.2_2.

When I look at my logs/sabnzbd.error.log, I see this:
Code:
Traceback (most recent call last):
  File "/usr/local/bin/SABnzbd.py", line 1721, in <module>
    main()
  File "/usr/local/bin/SABnzbd.py", line 1224, in main
    sabnzbd.initialize(pause, clean_up, evalSched=True, repair=repair)
  File "/usr/local/lib/python3.7/site-packages/sabnzbd/decorators.py", line 36, in call_func
    return f(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/sabnzbd/__init__.py", line 323, in initialize
    rss.init()
  File "/usr/local/lib/python3.7/site-packages/sabnzbd/rss.py", line 48, in init
    __RSS = RSSQueue()
  File "/usr/local/lib/python3.7/site-packages/sabnzbd/rss.py", line 209, in __init__
    patch_feedparser()
  File "/usr/local/lib/python3.7/site-packages/sabnzbd/rss.py", line 648, in patch_feedparser
    feedparser._FeedParserMixin.namespaces["http://www.newznab.com/DTD/2010/feeds/attributes/"] = "newznab"
AttributeError: module 'feedparser' has no attribute '_FeedParserMixin'


It looks like this issue is similar to the one described here: https://github.com/sabnzbd/sabnzbd/issues/1567#ref-commit-06066c2

What it sounds like is that feedparser needs to be <v6.0.0.

Is there an easy way to downgrade my version of feedparser?
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Nevermind. This was apparently because I switched pkg to use "latest" instead of "quarterly". I removed py37-feedparser (which also removed sabnzbd), switched to "quarterly", then reinstalled "sabnzbd" and everything started working again.
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
Thanks, I ran into the same issue. I hope the package maintainer for SABnzbd will update the package sometime soon. It's been a while.
 
Top