+ zc.buildout 1.4.1. cannot find cli.exe

Create issue
Issue #65 resolved
Matthew Scott created an issue

On Windows: manually remove setuptools from c:\python26\lib\site-packages\ remove buildout globally cached eggs install distribute globally for python 2.6 using copy into my buildout-based project's working copy remove bin, develop-eggs, parts in working copy run "python"

{{{ Creating directory 'C:\env\...\src\...-hg\bin'.
Creating directory 'C:\env\...\src\...-hg\parts'.
Creating directory 'C:\env\...\src\...-hg\develop-eggs'.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "c:\docume~1\gldnspud\locals~1\temp\tmpitn3_a\zc.buildout-1.4.1-py2.6.egg\zc\buildout\", line 1659, in main
getattr(buildout, command)(args)
File "", line 165, in _bootstrap
File "c:\docume~1\gldnspud\locals~1\temp\tmpitn3_a\zc.buildout-1.4.1-py2.6.egg\zc\buildout\", line 956, in scripts
initialization, rpsetup)
File "c:\docume~1\gldnspud\locals~1\temp\tmpitn3_a\zc.buildout-1.4.1-py2.6.egg\zc\buildout\", line 1048, in _script
new_data = pkg_resources.resource_string('setuptools', 'cli.exe')
File "c:\python26\lib\site-packages\distribute-0.6.4-py2.6.egg\", line 848, in resource_string
self, resource_name
File "c:\python26\lib\site-packages\distribute-0.6.4-py2.6.egg\", line 1121, in get_resource_string
return self._get(self._fn(self.module_path, resource_name))
File "c:\python26\lib\site-packages\distribute-0.6.4-py2.6.egg\", line 1248, in _get
stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: 'c:\python26\lib\site-packages\distribute-0.6.4-py2.6.egg\setuptools\cli.exe'

A directory listing shows that there are two cli executables, but both have suffixes:


dir c:\python26\lib\site-packages\distribute-0.6.4-py2.6.egg\setuptools*.exe
Volume in drive C has no label.
Volume Serial Number is 2CA0-F2F5

Directory of c:\python26\lib\site-packages\distribute-0.6.4-py2.6.egg\setuptools

10/12/2009 11:11 AM 65,536 cli-32.exe
10/12/2009 11:11 AM 74,240 cli-64.exe
10/12/2009 11:11 AM 65,536 gui-32.exe
10/12/2009 11:11 AM 74,240 gui-64.exe
4 File(s) 279,552 bytes }}}

Comments (5)

  1. Tarek Ziadé repo owner

    Thanks, we've introduced a regression by differenciating 32 and 64 bits.

    A backward compatible change is required, by translating "cli.exe" on the fly in get_resource_stream()

  2. Log in to comment