By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,089 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,089 IT Pros & Developers. It's quick & easy.

Re: When I do from lxml import etree I've this error : AttributeError:'module' object has no attribute 'BytesIO'

P: n/a
Le Mon, 25 Aug 2008 13:50:50 +0000, KLEIN Stéphane a écrit*:
Hi,

I'm on Ubuntu 8.04.1

I've installed lxml with easy_install lxml command.

Now, when I load etree I've this error :

$ python
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu
4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or
"license" for more information.
>>>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'
>>>>
Have you some idea about this issue ?
I've this bug only with lxml2, lxml 1.3.3 work very well.

Regards,
Stephane
Aug 25 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.