Issue2072

classification
Title: Python feedparser module (version 5.1.3)
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.7
process
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: samkramer, zyasoft
Priority: Keywords:

Created on 2013-07-26.14:53:54 by samkramer, last changed 2014-05-21.22:58:01 by zyasoft.

Files
File name Uploaded Description Edit Remove
rss.py samkramer, 2013-07-26.14:53:53 Sample script that parses RSS feed from Google News
Messages
msg8076 (view) Author: Sam Kramer (samkramer) Date: 2013-07-26.14:53:53
This is a regression error of the Python feedparser library [https://code.google.com/p/feedparser/]. The same version of feedparser (5.1.3) works correctly in Jython 2.5.3.

The error message from the attached sample [rss.py] is as follows:
Traceback (most recent call last):
File "rss.py", line 2, in <module>
  import feedparser
File "C:\jython\2.7b1\Lib\site-packages\feedparser-5.1.3-py2.7.egg\feedparser.py", line 1867, in <module>
  class _BaseHTMLProcessor(sgmllib.SGMLParser):
File "C:\jython\2.7b1\Lib\site-packages\feedparser-5.1.3-py2.7.egg\feedparser.py", line 1899, in _BaseHTMLProcessor
  goahead.func_code = sgmllib.SGMLParser.goahead.func_code
RuntimeError: maximum recursion depth exceeded
msg8492 (view) Author: Jim Baker (zyasoft) Date: 2014-05-21.22:58:00
So I installed feedparser by cloning the repo, then running Sam's code:

$ jython27 test_fp.py
Traceback (most recent call last):
  File "test_fp.py", line 1, in <module>
    import feedparser
  File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/feedparser-5.1.3-py2.7.egg/feedparser.py", line 2019, in <module>
    class _BaseHTMLProcessor(sgmllib.SGMLParser):
  File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/feedparser-5.1.3-py2.7.egg/feedparser.py", line 2051, in _BaseHTMLProcessor
    goahead.func_code = sgmllib.SGMLParser.goahead.func_code
RuntimeError: maximum recursion depth exceeded

Interestingly, when I install it via pip (using https://github.com/jimbaker/pip) it builds extremely strangely with indentation errors. Not certain what's going on here.
History
Date User Action Args
2014-05-21 22:58:01zyasoftsetresolution: accepted
messages: + msg8492
nosy: + zyasoft
2013-07-26 14:53:54samkramercreate