python module does not import

Wichert Akkerman wichert at wiggy.net
Mon Apr 30 15:44:21 PDT 2007


Previously Jonathan Daugherty wrote:
> # >>> from openid.yadis import etxrd
> # Traceback (most recent call last):
> #   File "<console>", line 1, in ?
> #   File "build/bdist.darwin-8.9.1-i386/egg/openid/yadis/etxrd.py", line 29, in ?
> # AttributeError: 'module' object has no attribute 'XMLTreeBuilder'
> 
> Of the modules named in openid.oidutil.elementtree_modules, which one
> is being used?  (I.e., what is the return value of
> openid.oidutil.importElementTree()?)

>>> from openid import oidutil
>>> oidutil.importElementTree()
<module 'lxml.etree' from '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/lxml-1.3beta-py2.4-macosx-10.4-i386.egg/lxml/etree.so'>

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.



More information about the Dev mailing list