[XML-SIG] [ pyxml-Bugs-434828 ] 0.11.1b2 : pDomlette reader bug
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 20 Jun 2001 08:40:31 -0700
Bugs item #434828, was updated on 2001-06-20 08:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=434828&group_id=6473
Category: 4Suite
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexandre Fayolle (afayolle)
Assigned to: Nobody/Anonymous (nobody)
Summary: 0.11.1b2 : pDomlette reader bug
Initial Comment:
I get a very strange behaviour when trying to use
PyExpatReader:
Python 1.5.2 (#1, Dec 21 2000, 15:29:08) [GCC
egcs-2.91.66 19990314/Linux (egcs
- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum,
Amsterdam
>>> from Ft.Lib.pDomletteReader import PyExpatReader
>>> r = PyExpatReader()
>>> d = r.fromString('<doc/>')
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "/home/alf/lib/python/Ft/Lib/ReaderBase.py",
line 67, in fromString
rt = self.fromStream(stream, refUri, ownerDoc,
stripElements)
File
"/home/alf/lib/python/Ft/Lib/pDomletteReader.py", line
175, in fromStream
self.parser.ParseFile(stream)
File
"/home/alf/lib/python/Ft/Lib/pDomletteReader.py", line
94, in startElement
include_depth = self._handleIncludes(name, qname,
nsattribs)
File "/home/alf/lib/python/Ft/Lib/ReaderBase.py",
line 159, in _handleIncludes
from Ft.Lib.XInclude import XINCLUDE_NAMESPACE,
XIncludeException
File "/home/alf/lib/python/Ft/Lib/XInclude.py", line
17, in ?
from Ft import XPointer
File "/home/alf/lib/python/Ft/XPointer/__init__.py",
line 13, in ?
g_readerClass = pDomlette.PyExpatReader
AttributeError: PyExpatReader
I've looked at the source straight in the eyes, and I
cannot imagine how I can get
Ft.Lib.pDomlette.PyExpatReader
Now, if I tweak things a little and import pDomlette
first, then things work fine :
>>> from Ft.Lib import pDomlette
>>> from Ft.Lib.pDomletteReader import PyExpatReader
>>> r = PyExpatReader()
>>> d = r.fromString('<doc/>')
>>>
There are many places where this problem can occur,
most of them are related to the BETA_DOMLETTE
environment variable.
Cheers.
Alexandre Fayolle
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=434828&group_id=6473