Problems updating an old install
Aaron Bentley
aaron.bentley at utoronto.ca
Tue Jan 24 14:10:17 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vincent LADEUIL wrote:
>>>>>>"Aaron" == Aaron Bentley <aaron.bentley at utoronto.ca> writes:
>
>
> Aaron> Vincent LADEUIL wrote:
> >> Trying to install that I get :
>
> >> | File "/home/vila/src/bzr.dev/bzrlib/branch.py", line 23,
> >> in ? | import xml.sax.saxutils | ImportError: No module
> >> named sax.saxutils
>
> Aaron> This is a problem with in-place upgrades, because they
> Aaron> don't usually delete old pyc files.
>
> Err...
>
> But line 23 of branch.py is :
>
> import xml.sax.saxutils
>
> I don't really understand python but isn't it something like a
> include of 'xml.sax.saxutils' ?
Yes. Python tries file-relative paths first, before trying the system
libraries Since there is an xml.pyc file, it concludes that xml ==
bzrlib/xml.pyc. Then, it tries to import sax in bzrlib, which is
impossible.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD1jVJ0F+nu1YWqI0RAhCMAJ4m8szMystQCSUXtxLcl3A9WCq+uwCeJE2v
pAjct0glXJZaItgSDeXneKc=
=zlyu
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list