Ticket #261 (closed defect: fixed)

Opened 6 months ago

Last modified 5 months ago

I am unable to import consumer

Reported by: http://sandipmore.blogspot.com/ Assigned to:
Priority: trivial Milestone:
Keywords: elementtree python2.4 Cc:
Project: python-openid OpenID Protocol:
Series: 2.x.x Web Browser:

Description

I am using 2.2 python-openid-2.2.0.tar.bz2, I tried to run program its giving following traceback on ubuntu, while same program works pretty well on windows m/c

File "/home/white/DoodlebopAlpha/trunk/Website/Theme/v020/psp/SignInOpenId.psp", line 2, in ?

from openid.consumer import consumer

File "/usr/lib/python2.4/site-packages/openid/consumer/consumer.py", line 197, in ?

from openid.consumer.discover import discover, OpenIDServiceEndpoint, \

File "/usr/lib/python2.4/site-packages/openid/consumer/discover.py", line 21, in ?

from openid.yadis.etxrd import nsTag, XRDSError, XRD_NS_2_0

File "/usr/lib/python2.4/site-packages/openid/yadis/etxrd.py", line 28, in ?

ElementTree? = importElementTree()

File "/usr/lib/python2.4/site-packages/openid/oidutil.py", line 58, in importElementTree

ElementTree? = import(mod_name, None, None, unused?)

ImportError?: No module named elementtree.ElementTree?

Change History

06/15/08 08:04:02 changed by http://j3h.us/

  • keywords set to elementtree python2.4.
  • priority changed from major to trivial.
  • project set to python-openid.
  • series set to 2.x.x.

For Python <2.5, it's necessary to install a library that implements the ElementTree? interface for processing XML. Python 2.5 and higher include it in the standard library. For Ubuntu, you can install python2.4-celementtree or python2.4-elementtree.

We should patch that code to print a message to this effect when importing an ElementTree? library fails.

06/25/08 14:40:20 changed by http://keturn.myopenid.com/

  • status changed from new to closed.
  • resolution set to fixed.

Added more explicit message if importing ElementTree? fails.