[Distutils] SetupTools on Python 2.5.1 [MSC v.1400 64 bit (AMD64)] on win32 x64

Phillip J. Eby pje at telecommunity.com
Mon Feb 4 00:23:16 CET 2008


At 02:24 AM 2/2/2008 +0300, Vladimir Kotulskiy wrote:
>Hello.
>I have installed last setuptools using python ez_setup.py and
>have not get any error messages.
>When I tried to use easy_install utility I got an error message "Cannot find
>Python executable E:\Develop\Python\python.exe".  Also  I have the 
>same problem with the Pylons that was installed using ez_setup.py
>Is there any way to use easy_install with python for x64 ?
>
>
>Y:\Disk>python
>Python 2.5.1 
>(<http://pylonshq.com/project/pylonshq/log/?revs=251-54863>r251:54863, 
>Apr 18 2007, 09:02:36) [MSC v.1400 64 bit (AMD64)] on win32
>Type "help", "copyright", "credits" or "license" for more information.
>
>Y:\Disk>E:\Develop\Python\python.exe
>Python 2.5.1 
>(<http://pylonshq.com/project/pylonshq/log/?revs=251-54863>r251:54863, 
>Apr 18 2007, 09:02:36) [MSC v.1400 64 bit (AMD64)] on win32
>Type "help", "copyright", "credits" or "license" for more information.

I'm afraid I don't have an x64 system to test or investigate with.  I 
would guess, however, that the problem has to do with the 
LoadLibraryEx call in launcher.c:

     http://svn.python.org/view/sandbox/trunk/setuptools/launcher.c

The .exe files compiled from launcher.c are 32-bit, but presumably 
the python.exe being loaded here is 64-bit, and that is probably 
causing LoadLibraryEx to fail.

Unfortunately, I have no idea how to *fix* it.  Perhaps somebody with 
more Windows/C API experience could chime in here?



More information about the Distutils-SIG mailing list