KLEIN Stéphane wrote: > Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) >>>> from lxml import etree > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "lxml.etree.pyx", line 40, in lxml.etree (src/lxml/ > lxml.etree.c:119415) > AttributeError: 'module' object has no attribute 'BytesIO'
Do you have a module called "io" lying around in your Python path somewhere? lxml.etree checks for io.BytesIO (Py2.6/3.0) being available when it starts up, and only failing that, falls back to StringIO.StringIO (Py <= 2.5). Stefan -- http://mail.python.org/mailman/listinfo/python-list