[Python-Dev] Can't build Zope on Windows w/ 2.4.1c1

Tim Peters tim.peters at gmail.com
Thu Mar 10 18:07:50 CET 2005

[Anthony Baxter]
> It works on Linux, with Zope 2.7.4.


> Just as a note to others (I've mentioned this to Tim already) if you set an
> environment variable DISTUTILS_DEBUG before running a setup.py, you get
> very verbose information about what's going on, and, more importantly, full
> tracebacks rather than terse error messages.
> error: No such file or directory
> looks like a distutils error message.

This helped a lot, although I'm even more confused now:

building 'ZODB.cPickleCache' extension
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe
    /c /nologo /Ox /MD /W3 /GX /DNDEBUG
    -IC:\python24\PC /TcZODB/cPickleCache.c
error: No such file or directory
Traceback (most recent call last):
  File "C:\Code\Zope-2_7-branch\setup.py", line 1094, in ?
  File "C:\python24\lib\distutils\core.py", line 149, in setup
  File "C:\python24\lib\distutils\dist.py", line 946, in run_commands
  File "C:\python24\lib\distutils\dist.py", line 966, in run_command
  File "C:\python24\lib\distutils\command\build_ext.py", line 279, in run
  File "C:\python24\lib\distutils\command\build_ext.py", line 405, in
  File "C:\python24\lib\distutils\command\build_ext.py", line 502, in
  File "C:\python24\lib\distutils\ccompiler.py", line 847, in link_shared_object
    extra_preargs, extra_postargs, build_temp, target_lang)
  File "C:\python24\lib\distutils\msvccompiler.py", line 422, in link
    if not self.initialized: self.initialize()
  File "C:\python24\lib\distutils\msvccompiler.py", line 239, in initialize
    os.environ['path'] = string.join(self.__paths, ';')
  File "C:\python24\lib\os.py", line 419, in __setitem__
    putenv(key, item)
OSError: [Errno 2] No such file or directory

LOL -- or something <wink>.  Before going to sleep, Anthony suggested that

    Bug #1110478: Revert os.environ.update to do putenv again.

might be relevant.  HTF can we get a "no such file or directly" out of
a putenv()?!  Don't be shy.

More information about the Python-Dev mailing list