[ python-Bugs-1511497 ] xml.sax.expatreader is missing
SourceForge.net
noreply at sourceforge.net
Mon Jun 26 20:15:29 CEST 2006
Bugs item #1511497, was opened at 2006-06-23 20:14
Message generated for change (Comment added) made by calvin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1511497&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: XML
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Wummel (calvin)
Assigned to: Nobody/Anonymous (nobody)
Summary: xml.sax.expatreader is missing
Initial Comment:
Hi,
when testing the new Python 2.5 subversion tree I
encountered this behaviour:
$ python2.5
Python 2.5b1 (trunk:47065, Jun 22 2006, 20:56:23)
[GCC 4.1.2 20060613 (prerelease) (Debian 4.1.1-5)] on
linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import xml.sax.expatreader
>>> print xml.sax.expatreader
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute
'expatreader'
>>>
So the import went ok, but using the attribute gave an
error. This is very strange. Python 2.4 did not have
this behaviour.
----------------------------------------------------------------------
>Comment By: Wummel (calvin)
Date: 2006-06-26 20:15
Message:
Logged In: YES
user_id=9205
I built Python directly from the SVN trunk repository with
$ ./configure && make altinstall
I attached the pyconfig.h that was generated. If you need
more info, feel free to ask.
After building and installing, I started up python2.5 and
executed "import xml.sax.expatreader" and then "print
xml.sax.expatreader", and nothing else.
Another thing I tried is "import from", which works.
But importing xml.sax.expatreader directly, as noted above,
does not work.
Here is the log with the "import from" test:
Python 2.5b1 (trunk:47090, Jun 25 2006, 09:59:02)
[GCC 4.1.2 20060613 (prerelease) (Debian 4.1.1-5)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> from xml.sax import expatreader
>>> print expatreader
<module 'xml.sax.expatreader' from
'/usr/local/lib/python2.5/xmlcore/sax/expatreader.pyc'>
>>> print xml.sax.expatreader
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'expatreader'
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2006-06-24 12:39
Message:
Logged In: YES
user_id=21627
How precisely did you test it? What configure options did
you set up, what commands did you provide to build Python?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1511497&group_id=5470
More information about the Python-bugs-list
mailing list