bzr-0.7 and cElementTree

Alexander Belchenko bialix at ukr.net
Wed Jan 25 17:08:34 GMT 2006


Adis Nezirovic пишет:
> bzr 0.7
> cElementTree c1.0.5-20051216
> 
> It seems to me that there is a problem in bzrlib/xml.py
> Please note that documentation at
> http://effbot.org/zone/celementtree.htm explicitly states that we need
> *both* cElementTree and standard ElementTree. (e.g. 'fromstring' is not
> defined in cElementTree, I double checked 'cElementTree.so' with nm)
> 
> Attached patch resolves issue for me. Did I get it right, or I am
> horribly wrong :-)

You need to have installed both ElementTree and cElementTree on your 
machine. Without elementtree package python cannot import cElementTree:

Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import cElementTree
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "<string>", line 5, in ?
ImportError: No module named ElementTree


--
Alexander





More information about the bazaar mailing list