Error Universaldectector

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
toerbi
Newbie
Newbie
Posts: 4
Joined: March 10th, 2017, 3:54 pm

Error Universaldectector

Post by toerbi »

Hey after a new Installation of SABnzbd 2.0.0 and SAByenc, i get this error after trying to read my RSS News feed. Any suggestion

Code: Select all

Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/share/sabnzbdplus/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 1918, in index
    ignoreFirst=self.__refresh_ignore, readout=readout)
  File "/usr/share/sabnzbdplus/sabnzbd/rss.py", line 71, in run_feed
    return __RSS.run_feed(feed, download, ignoreFirst, force=force, readout=readout)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 32, in newFunction
    return f(*args, **kw)
  File "/usr/share/sabnzbdplus/sabnzbd/rss.py", line 308, in run_feed
    feed_parsed = feedparser.parse(uri.replace('feed://', 'http://'))
  File "/usr/share/sabnzbdplus/sabnzbd/utils/feedparser.py", line 3988, in parse
    data, result['encoding'], error = convert_to_utf8(http_headers, data)
  File "/usr/share/sabnzbdplus/sabnzbd/utils/feedparser.py", line 3790, in convert_to_utf8
    chardet_encoding = unicode(chardet.detect(data)['encoding'] or '', 'ascii', 'ignore')
  File "/usr/lib/python2.7/dist-packages/chardet/__init__.py", line 27, in detect
ImportError: cannot import name universaldetector
FEHLER 10/03/2017 21:45 ERROR DURING SCHEDULER EXECUTION cannot import name universaldetector
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/utils/kronos.py", line 305, in __call__
    self.execute()
  File "/usr/share/sabnzbdplus/sabnzbd/utils/kronos.py", line 317, in execute
    self.action(*self.args, **self.kw)
  File "/usr/share/sabnzbdplus/sabnzbd/rss.py", line 95, in run_method
    return __RSS.run()
  File "/usr/share/sabnzbdplus/sabnzbd/rss.py", line 542, in run
    self.run_feed(feed, download=True, ignoreFirst=True)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 32, in newFunction
    return f(*args, **kw)
  File "/usr/share/sabnzbdplus/sabnzbd/rss.py", line 308, in run_feed
    feed_parsed = feedparser.parse(uri.replace('feed://', 'http://'))
  File "/usr/share/sabnzbdplus/sabnzbd/utils/feedparser.py", line 3988, in parse
    data, result['encoding'], error = convert_to_utf8(http_headers, data)
  File "/usr/share/sabnzbdplus/sabnzbd/utils/feedparser.py", line 3790, in convert_to_utf8
    chardet_encoding = unicode(chardet.detect(data)['encoding'] or '', 'ascii', 'ignore')
  File "/usr/lib/python2.7/dist-packages/chardet/__init__.py", line 27, in detect
ImportError: cannot import name universaldetector
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Error Universaldectector

Post by sander »

Did you google "ImportError: cannot import name universaldetector"?

And:

open a python prompt, en type the 3 commands below.

Code: Select all

$ python

>>> import chardet

>>> chardet.detect(b'aabbcc')
{'confidence': 1.0, 'encoding': 'ascii'}

>>> unicode(chardet.detect(b'aabbcc')['encoding'] or '', 'ascii', 'ignore')
u'ascii'
... and post the output here.
toerbi
Newbie
Newbie
Posts: 4
Joined: March 10th, 2017, 3:54 pm

Re: Error Universaldectector

Post by toerbi »

there is no Output but after the Installation of pip and importing chardet everything's working fine
toerbi
Newbie
Newbie
Posts: 4
Joined: March 10th, 2017, 3:54 pm

Re: Error Universaldectector

Post by toerbi »

nope, no failure ouput anymore, but reading the rss feed, he tells ist empty. so ist not working fine yet :)
any suggestions?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error Universaldectector

Post by safihre »

Did you check if the RSS feed actually has content if you open it in a browser?
Or check the Debug logs (turn on Debug logging in the Status Window) after clicking 'Read feed'.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
toerbi
Newbie
Newbie
Posts: 4
Joined: March 10th, 2017, 3:54 pm

Re: Error Universaldectector

Post by toerbi »

yes, it is, it seems the Server reduces the max amount of Connection in a Minute. i am nearly permanent banned, this the new upgrade. i did uncheck the box infront of the the rss feed and set the Intervall to 600 minutes
Post Reply