I am trying to use lxml on Ubuntu 13.10 64 bit. I created a virtualenv workspace with Python 3.3.2 64 bit and installed lxml using pip with no reported errors. However when I try to run a Python script with the following code: import lxml context = lxml.etree.iterparse(...) I get the following error: AttributeError: 'module' object has no attribute 'etree' I have verified that the etree .so file is in the site-packages directory of the virtualenv. I tried setting the LD_LIBRARY_PATH environment variable to the site-packages/lxml directory but this did not help. I am at a complete loss to know how to proceed from here.
Am 18.11.2013, 05:12 Uhr, schrieb Jonathan Gossage <jgossage@gmail.com>:
I am trying to use lxml on Ubuntu 13.10 64 bit. I created a virtualenv workspace with Python 3.3.2 64 bit and installed lxml using pip with no reported errors. However when I try to run a Python script with the following code:
import lxml context = lxml.etree.iterparse(...)
I get the following error: AttributeError: 'module' object has no attribute 'etree'
Use: import lxml.etree .. --dirk
participants (2)
-
Dirk Rothe
-
Jonathan Gossage