Has Python 2.4.1 changed implementation for __init__.py???

Werner Merkl werner_DOT_merkl_ at _fujitsu_DASH_siemens.com
Wed Apr 13 07:48:27 EDT 2005


Hallo,


I just downloaded http://www.python.org/pypi/xexpr/0.02, installed
if (python setup.py install) and tried the example in the README file.

Than I got following error: AttributeError: 'module' object has no 
attribute 'Read'

This is same behavior for all module using empty __init__.pr files,
like venster, Pyrex or libxmlmods...

Is there a change in the implementation, so that every module needs an
explicit list for exchanged modules? Or is there a switch or an
environment variable to change?


Thanks a lot
Werner


EXAMPLE
------------------------------------------------------------------------

Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import xexpr
 >>> example = '<foo a="b" c="d"><bar><baz a="d" />Blah</bar></foo>'
 >>> xexpr.Read.to_xexpr(example)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'Read'
 >>>



More information about the Python-list mailing list