Problem using bzr on Python program

Alexander Belchenko bialix at ukr.net
Mon Feb 12 14:33:54 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Seaton пишет:
> Hi,
> 
> I'm using bzr to version control a Python program. One of my modules is
> called xml.py, which causes problems because when bzr goes to import
> xml.parsers.expat, it tries to import my xml.py, as it's in the current
> directory and so checked before the standard library.
> 
> I renamed the file for the moment, but this isn't a fix really. I can't
> check the bzr source code and avoid all file names that bzr uses. Can't
> bzr remove the current directory from the module search path?
> 
> What puzzles me is how bzr self hosts? Surely every file that bzr tries
> to import will be found in the current directory.

I assume you are on Windows.
It's a bug in Python itself not in bzr.
And this behaviour was fixed in Python 2.5.

Using standalone exe is the simplest solution.

Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0HrSzYr338mxwCURAqpRAJ9Uspd2g4tcuHuYF3FUrAY2C4j6SwCdESsq
iV+nxbZqFUIL43d/TDAwEF8=
=a3p/
-----END PGP SIGNATURE-----




More information about the bazaar mailing list