minor python troubles
jan
janmar at iprimus.com.au
Sat Mar 26 03:14:01 GMT 2005
Here's the first message I got when running bzr-0.0.0.69:
Traceback (most recent call last):
File "/usr/bin/bzr", line 20, in ?
import sys, bzrlib, bzrlib.commands
File "/usr/lib/python2.3/site-packages/bzrlib/__init__.py", line 20, in ?
from inventory import Inventory, InventoryEntry
File "/usr/lib/python2.3/site-packages/bzrlib/inventory.py", line 30, in ?
from elementtree.ElementTree import Element, ElementTree, SubElement
ImportError: No module named elementtree.ElementTree
This is obviously my fault, I installed cElementTree but didn't test
it before running bzr. Still it might be good to catch this case and
give a nicer error message.
Anyway, I ended up just using the python based elementtree and things
went fine until I tried to commit. The snag being that time.localtime
doesn't support None as an argument until Python-2.4. The README
suggests you're aiming for 2.2 as a baseline, is this the case?
If not, I'll just upgrade to 2.4.
Also, while looking through osutils.py I noticed you're not using
python's portable file and directory functions, are they deficient?
--
jan
More information about the bazaar
mailing list