file checking problem with Python 2.5, Mac OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
New
|
Undecided
|
Unassigned |
Bug Description
This was spotted on Mac OS X "Leopard", and I was unable to reproduce this on Ubuntu Linux 6.10 with Python 2.5.1.
Using Python 2.5 (either 2.5.1 or the current state of the 2.5.2 maintenance branch), running bin/buildout with a download cache directory that's a symlink to another location (or has a directory with a parent that is such a symlink), causes an error to be generated. This only happens for a file that's already in the download cache; there is no error if only uncached distributions are needed.
In my case, I have these directories:
/Users/
/Users/
/Users/
and this symlink:
/Users/
Bootstrapping with Python 2.5.1 or the pending 2.5.2 works as expected.
Running the generated bin/buildout generates an error like this for the cases I've tried (the zc.buildout and zc.catalog trunks):
Develop: '/Users/
Getting distribution for 'zc.recipe.
While:
Installing.
Getting section test.
Initializing section test.
Installing recipe zc.recipe.
Getting distribution for 'zc.recipe.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Error:
`/Users/
Adding the "-D" flag on the command line produces this traceback:
Develop: '/Users/
Getting distribution for 'zc.recipe.
While:
Installing.
Getting section test.
Initializing section test.
Installing recipe zc.recipe.
Getting distribution for 'zc.recipe.
Traceback (most recent call last):
File "/private/
File "/private/
File "/private/
File "/private/
File "/private/
File "/private/
File "/private/
File "/private/
File "/private/
File "/Users/
copyfile(src, dst)
File "/Users/
raise Error, "`%s` and `%s` are the same file" % (src, dst)
Error: `/Users/
Starting pdb:
> /Users/
-> raise Error, "`%s` and `%s` are the same file" % (src, dst)
(Pdb)
I should note that the ~/.buildout/ default. cfg file identifies the cache directories using the path involving the symlink:
[buildout] fdrake/ .buildout/ downloads/ fdrake/ .buildout/ eggs/ download. zope.org/ ppix/
download-cache = /Users/
eggs-directory = /Users/
index = http://