"ImportError: No module named sax.saxutils"

Martin Pool mbp at sourcefrog.net
Fri Jan 20 05:15:56 GMT 2006


On 20 Jan 2006, Robert Collins <robertc at robertcollins.net> wrote:
> On Fri, 2006-01-20 at 16:03 +1100, Martin Pool wrote:
> > If you install the current bzr 0.7-fixes over an existing installation
> > you may get this error.  The problem is that we renamed bzrlib.xml to
> > allow access to the python top-level namespace called 'xml', but there
> > may still be a .pyc or .pyo file installed. 
> > 
> > I had previously left John's renaming of xml_serializer in place, but I
> > think given we're pulling out the bug it fixes I'll revert that too.
> > 
> > After 0.7 we should rename that module, and people will need to just
> > remove the bzrlib installation before installing a new one.  (Which is a
> > pretty good practice anyhow.)
> 
> When I first read this I was confused. But I realise you mean in the
> installed copy.. does distutils have a 'uninstall' mode ?

Actually it can also happen in your source tree if you pull or merge,
because the xml.pyc will still be there.  (Python sucks sometimes.)

distutils doesn't have an 'uninstall', but if it did it probably
wouldn't help a lot because we need to uninstall the old version.

What we probably want, and what might be possible, is to delete
everything inside the installed bzrlib pacakge (but not bzrlib.plugins)
before installing.

If you install from a .deb or similar package it's fine.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060120/82a40792/attachment.pgp 


More information about the bazaar mailing list