question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feedparser.py get exception.

See original GitHub issue

Expected behaviour:

flexget check command ok.

Actual behaviour:

command “flexget check” crashed. try command “flexget --help”, crashed too.

Steps to reproduce:

  • Step 1: run cmd “flexget --version”. —ok
  • Step 2: run cmd “flexget check”. —failed.
  • Step 3: run cmd “flexget --help”. —failed. same print with ‘Step 2’.

Config:

tasks:
  HDHome.Auto:
    rss: 'http://hdhome.org/torrentrss.php?myrss=1&linktype=dl&uid=63012'
    accept_all: yes
    download: /root/.flexget/rss/hdhome/

Log:


SyntaxError: invalid syntax
2017-06-06 13:11 CRITICAL plugin                        Exception while loading plugin flexget.plugins.sites.nyaa
Traceback (most recent call last):
  File "/opt/lib/python3.6/site-packages/flexget/plugin.py", line 396, in _load_plugins_from_dirs
    __import__(module_name)
  File "/opt/lib/python3.6/site-packages/flexget/plugins/sites/nyaa.py", line 7, in <module>
    import feedparser
  File "/opt/lib/python3.6/site-packages/feedparser.py", line 316
    raise KeyError, "object doesn't have key 'category'"

Additional information:

  • FlexGet version: 2.10.60
  • Python version: 3.6.1
  • Installation method: pip3 install flexget
  • Using daemon (yes/no): no
  • OS and version: DSM6.1
  • Link to crash log:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
liiightcommented, Nov 21, 2017

python 3.6 support was added in 2.11.0. Please upgrade and test

0reactions
adamrothmancommented, Nov 25, 2017

2.11.1 is working just fine for me under Python 3.6. Thanks to everyone who worked on this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feedparser Python : Is there a way to handle connection errors?
I am talking about the HTTP errors, for instance "404 Not Found". I read the documentation but found nothing that could help me....
Read more >
bozo_exception — feedparser 5.2.0 documentation
The exception raised when attempting to parse a non-well-formed feed. See Bozo Detection for more details. ... bozo_exception will only be present if...
Read more >
Documentation — feedparser 5.0.1 documentation
If your date handler returns None, or anything other than a Python 9-tuple date, or raises an exception of any kind, the error...
Read more >
feedparser hangs and never raises the exception/timeout!
I have an exceptionally patchy internet and when the service is out, feedparser hangs. Ctrl+C works fine to get it out of the...
Read more >
Using Feedparser in Python - PythonForBeginners.com
Getting the RSS feed. You can use any RSS feed that you want. Since I like to read Reddit, I will use that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found