[BangPypers] Import Error

Subhodip Biswas subhodipbiswas at gmail.com
Mon Nov 14 08:29:08 CET 2011


Hi all,

I am trying to install lxml in my windows box with jython 2.5.2. I can
see a lxml egg folder in site packages under jython installation
directory.
However if I try to import lxml the following thing happens :

>>>Import lxml

working fine

>> from lxml import etree

>>> from lxml import etree
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\jython2.5.2\Lib\site-packages\lxml-2.3-py2.6-win32.egg\lxml\etree.py"
, line 7, in <module>
    __bootstrap__()
  File "C:\jython2.5.2\Lib\site-packages\lxml-2.3-py2.6-win32.egg\lxml\etree.py"
, line 6, in __bootstrap__
    imp.load_dynamic(__name__,__file__)
ImportError: No module named lxml.etree

I can see etree.py in the installation directory though.

I need this to use GenerateDS.py for unmarshalling purpose.

What am I missing out here?

-------------
Regards
Subhodip Biswas


GPG key : FAEA34AB
Server : pgp.mit.edu
http://subhodipbiswas.wordpress.com
http:/www.fedoraproject.org/wiki/SubhodipBiswas


More information about the BangPypers mailing list