HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

feedparser 4.1 raises a ValueError exception #259

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Just run python /usr/lib/pymodules/python2.6/feedparser.py 
http://feeds.feedburner.com/VistoEnFacebook

What is the expected output? What do you see instead?
Obtain the given site's feed.

I am on Debian GNU/Linux Testing running the following software versions:
ii  python              2.6.6-3+squeeze5
ii  python-feedparser   4.1-14

Please, let me know if you need something else I omitted by error or oversight. 
And keep up the VERY GOOD work! ;)

Original issue reported on code.google.com by worbynet@gmail.com on 4 Mar 2011 at 10:04

GoogleCodeExporter commented 9 years ago
Ooops, sorry. That's the output I see instead:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/feedparser.py", line 2651, in <module>
    result = parse(url)
  File "/usr/lib/pymodules/python2.6/feedparser.py", line 2633, in parse
    feedparser.feed(data)
  File "/usr/lib/pymodules/python2.6/feedparser.py", line 1450, in feed
    sgmllib.SGMLParser.feed(self, data)
  File "/usr/lib/python2.6/sgmllib.py", line 104, in feed
    self.goahead(0)
  File "/usr/lib/python2.6/sgmllib.py", line 186, in goahead
    self.handle_charref(name)
  File "/usr/lib/pymodules/python2.6/feedparser.py", line 508, in handle_charref
    c = int(ref)
ValueError: invalid literal for int() with base 10: 'a'

Original comment by worbynet@gmail.com on 4 Mar 2011 at 10:17

GoogleCodeExporter commented 9 years ago
Just in case the error dissapears as new feed items come in and older go out, I 
pulled down the feed with wget (wget http://feed_url -O VistoenFB.wget) and I 
am attaching it here.

Original comment by worbynet@gmail.com on 4 Mar 2011 at 3:08

Attachments:

GoogleCodeExporter commented 9 years ago
Please download and test this issue on feedparser 5.0.1; I'm not seeing an 
exception with the new version.

Feedparser 4.1 was released five years ago, and package maintainers have been 
notified of the new release, so hopefully it'll get to you soon! :)

Original comment by kurtmckee on 4 Mar 2011 at 6:01

GoogleCodeExporter commented 9 years ago
Great to hear! Thanks and sorry for the inconveniences.

Will wait for the Debian package maintainers to update it (although feedparser 
5 version is quite new!).

Original comment by worbynet@gmail.com on 5 Mar 2011 at 10:15

GoogleCodeExporter commented 9 years ago
Hey, no inconvenience; I'd like to see feedparser be the best software it can 
be, and bug reports are one way to achieve that. I'm going to close this 
report, but if you download 5.0.1 and move feedparser.py to wherever your code 
is at and still find that there's a bug, don't hesitate to come back to this 
report!

Original comment by kurtmckee on 5 Mar 2011 at 5:28

GoogleCodeExporter commented 9 years ago
Test done. It became successfull =) Thanks again!

Original comment by worbynet@gmail.com on 5 Mar 2011 at 10:05