Page 1 of 1

Error Universaldectector

Posted: March 10th, 2017, 4:00 pm
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

Re: Error Universaldectector

Posted: March 10th, 2017, 5:27 pm
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.

Re: Error Universaldectector

Posted: March 11th, 2017, 6:11 am
by toerbi
there is no Output but after the Installation of pip and importing chardet everything's working fine

Re: Error Universaldectector

Posted: March 11th, 2017, 2:11 pm
by toerbi
nope, no failure ouput anymore, but reading the rss feed, he tells ist empty. so ist not working fine yet :)
any suggestions?

Re: Error Universaldectector

Posted: March 11th, 2017, 2:27 pm
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'.

Re: Error Universaldectector

Posted: March 14th, 2017, 4:43 am
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