[XML-SIG] [ pyxml-Patches-421217 ] ImportError shoudl be AttributeError
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 03 May 2001 19:04:21 -0700
Patches item #421217, was updated on 2001-05-03 19:04
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=306473&aid=421217&group_id=6473
Category: 4Suite
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Karl Anderson (karlanderson)
Assigned to: Nobody/Anonymous (nobody)
Summary: ImportError shoudl be AttributeError
Initial Comment:
I'm running a recent CVS checkout of PyXML, and have
4Suite 0.11a2 installed (I haven't installed 4Suite
0.11, but it doesn't look to be different in this
regard).
I'm running Python 1.5.2 under Redhat 6.2.
I get an attribute error when I try to import xslt.
StylesheetReader.py seems to be catching ImportError
when it should catch AttributeError for me.
The intended import seems to be
Ft.Lib.Error.XML_PARSE_ERROR, not
Ft.Lib.XML_PARSE_ERROR.
This happens before my patch:
>>> import sys
>>> sys.path.insert(0,
'/home/karl/zope/dist/xml/PyXML-cvs-install/lib/python1.5/site-packages')
# where I installed from CVS
>>> import xml
>>> from xml.xslt import Processor
Traceback (innermost last):
File "<stdin>", line 1, in ?
File
"/home/karl/zope/dist/xml/PyXML-cvs-install/lib/python1.5/site-packages/xml/xslt/Processor.py",
line 24, in ?
from xml.xslt import StylesheetReader, ReleaseNode
File
"/home/karl/zope/dist/xml/PyXML-cvs-install/lib/python1.5/site-packages/xml/xslt/StylesheetReader.py",
line 67, in ?
XML_PARSE_ERROR = Ft.Lib.XML_PARSE_ERROR
AttributeError: XML_PARSE_ERROR
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=306473&aid=421217&group_id=6473