"ImportError: No module named sax.saxutils"
Robert Collins
robertc at robertcollins.net
Fri Jan 20 05:22:17 GMT 2006
On Fri, 2006-01-20 at 16:15 +1100, Martin Pool wrote:
> 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.)
Well thats why I do make clean after every pull or merge.
> 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.
Well, it could record a manifest of the installed files to remove. Still
its an expected thing with (for instance) automake that you uninstall
with the same source as you installed.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060120/fcff3956/attachment.pgp
More information about the bazaar
mailing list