Share

spirito-pisa

Tracker: Bugs

5 Traceback in pisa parser usage. - ID: 1984921
Last Update: Comment added ( openspirito )

2008-06-05 11:23:54 ERROR ho.pisa Document error
Traceback (most recent call last):
File
"/zope/app/python-2.4.4/lib/python2.4/site-packages/pisa-3.0.20-py2.4.egg/s
x/pisa3/pisa_document.py", line 92, in pisaDocument
c = pisaStory(src, path, link_callback, debug, default_css, xhtml,
encoding)
File
"/zope/app/python-2.4.4/lib/python2.4/site-packages/pisa-3.0.20-py2.4.egg/s
x/pisa3/pisa_document.py", line 54, in pisaStory
pisaParser(src, c, default_css, xhtml, encoding)
File
"/zope/app/python-2.4.4/lib/python2.4/site-packages/pisa-3.0.20-py2.4.egg/s
x/pisa3/pisa_parser.py", line 577, in pisaParser
parseMeta = not encoding)
TypeError: parse() got an unexpected keyword argument 'parseMeta'


Nobody/Anonymous ( nobody ) - 2008-06-04 23:21

5

Closed

None

Nobody/Anonymous

pisa 3.0

None

Public


Comments ( 3 )




Date: 2008-06-05 12:29
Sender: openspiritoProject Admin


Sorry, I worked against the html5lib SVN trunk. I fixed that and will
release a new version of pisa today. Please have a look at the mailinglist
to get informed.


Date: 2008-06-04 23:35
Sender: esrever_otuaAccepting Donations


Further, once the 'parseMeta' keyword is removed, pisa then fails later
with:
2008-06-05 11:33:04 ERROR ho.pisa Document error
Traceback (most recent call last):
File
"/zope/app/python-2.4.4/lib/python2.4/site-packages/pisa-3.0.20-py2.4.egg/sx/pisa3/pisa_document.py",
line 92, in pisaDocument
c = pisaStory(src, path, link_callback, debug, default_css, xhtml,
encoding)
File
"/zope/app/python-2.4.4/lib/python2.4/site-packages/pisa-3.0.20-py2.4.egg/sx/pisa3/pisa_document.py",
line 54, in pisaStory
pisaParser(src, c, default_css, xhtml, encoding)
File
"/zope/app/python-2.4.4/lib/python2.4/site-packages/pisa-3.0.20-py2.4.egg/sx/pisa3/pisa_parser.py",
line 583, in pisaParser
pisaPreLoop(document, c)
File
"/zope/app/python-2.4.4/lib/python2.4/site-packages/pisa-3.0.20-py2.4.egg/sx/pisa3/pisa_parser.py",
line 346, in pisaPreLoop
if node.nodeType == Node.TEXT_NODE and collect:
AttributeError: 'tuple' object has no attribute 'nodeType'



Date: 2008-06-04 23:26
Sender: esrever_otuaAccepting Donations


Looking at the function signature for parse() in html5lib shows:
def parse(self, stream, encoding=None):

So the pisa usage with a 'parseMeta' keyword is entirely wrong for the
latest released version of html5lib (0.10)


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2008-06-05 12:29 openspirito
close_date - 2008-06-05 12:29 openspirito