[python-win32] python-win32 Digest, Vol 121, Issue 12

Mark Hammond skippy.hammond at gmail.com
Fri Apr 26 07:20:20 CEST 2013


Can't you just download and install the pre-built binaries?  If you do 
need to build from sources, I suspect the missing header is in the 
platform SDK...

Mark

On 25/04/2013 7:59 PM, Dinesh B Vadhia wrote:
> Mark
> Started again from the top by first downloading the pywin32 tarball to a
> Windows 7/8 64-bit machine with Python 2.7.4 64-bit installed
> system-wide. The MS SDK v7.0 has been installed and initiated for 64-bit
> compiler support.  No virtualenv during this phase.  The following is
> the output for installing pywin32 followed by installing with
> pywin32_postinstall:
>
> 1.
> C:\Downloads\pywin32-218>python setup.py install
> Building pywin32 2.7.218.0
> running install
> running build
> running build_py
> running build_ext
> Found version 0x601 in C:\Program Files\Microsoft
> SDKs\Windows\v7.0\include\SDKDDKVER.H
> building 'perfmondata' extension
> C:\Program Files\Microsoft SDKs\Windows\v7.0\bin\x64\mc.exe -h
> win32\src\perfmon
> -r build\temp.win-amd64-2.7\Release\win32\src\perfmon
> win32\src\perfmon\PyPerfM
> sgs.mc
> MC: Compiling win32\src\perfmon\PyPerfMsgs.mc
> C:\Program Files\Microsoft SDKs\Windows\v7.0\bin\x64\rc.exe
> /fobuild\temp.win-am
> d64-2.7\Release\win32\src\perfmon\PyPerfMsgs.res
> build\temp.win-amd64-2.7\Releas
> e\win32\src\perfmon\PyPerfMsgs.rc
> Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe
> /c /nolog
> o /Ox /MD /W3 /GS- /DNDEBUG -DDISTUTILS_BUILD -D_CRT_SECURE_NO_WARNINGS
> -Icom/wi
> n32com/src/include -Iwin32/src -IC:\Python27\include -IC:\Python27\PC
> "-IC:\Prog
> ram Files\Microsoft SDKs\Windows\v7.0\include"
> /Tpwin32\src\perfmon\perfmondata.
> cpp
> /Fobuild\temp.win-amd64-2.7\Release\win32\src\perfmon\perfmondata.obj
> /Zi /F
> dbuild\temp.win-amd64-2.7\Release\perfmondata_vc.pdb /EHsc /DUNICODE
> /D_UNICODE
> /DWINNT
> perfmondata.cpp
> win32\src\perfmon\perfmondata.cpp(11) : fatal error C1083: Cannot open
> include f
> ile: 'perfutil.h': No such file or directory
> error: command 'cl.exe' failed with exit status 2
>
> 2.
> C:\Downloads\pywin32-218>python pywin32_postinstall.py -in
> stall
> Traceback (most recent call last):
>   File "pywin32_postinstall.py", line 615, in <module>
>     install()
>   File "pywin32_postinstall.py", line 323, in install
>     import win32api
> ImportError: DLL load failed: %1 is not a valid Win32 application.
>
>
> --------------------------------------------------
> From: <python-win32-request at python.org>
> Sent: Monday, April 22, 2013 3:00 AM
> To: <python-win32 at python.org>
> Subject: python-win32 Digest, Vol 121, Issue 12
>
>> Send python-win32 mailing list submissions to
>> python-win32 at python.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://mail.python.org/mailman/listinfo/python-win32
>> or, via email, send a message with subject or body 'help' to
>> python-win32-request at python.org
>>
>> You can reach the person managing the list at
>> python-win32-owner at python.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of python-win32 digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: pywin32 and virtualenv (Mark Hammond)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 22 Apr 2013 12:44:19 +1000
>> From: Mark Hammond <skippy.hammond at gmail.com>
>> To: Dinesh B Vadhia <dineshbvadhia at hotmail.com>,
>> python-win32 at python.org
>> Subject: Re: [python-win32] pywin32 and virtualenv
>> Message-ID: <5174A403.8050706 at gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> On 19/04/2013 7:19 PM, Dinesh B Vadhia wrote:
>>> Ignoring virtualenv initially.
>>> On a Windows 8 machine, installed Python 2.7.4 64-bit system-wide.
>>> Installed Python 2.7.4 32-bit into a separate folder.
>>> Ran pywin32-218.win32-amd64--py2.7.exe successfully.
>>> Ran pywin32-218.win32-py2.7.exe in the Python 32-bit folder which
>>> generated the errors (shown in the pywin32 installer window):
>>>      close failed in file object destructor:
>>>      sys.excepthook is missing
>>>      lost sys.stderr
>>> No mention of successful installation in installer window.
>>
>> I believe this is caused by having UAC disabled on the machine - and
>> I've never found why this happens.  Running "python
>> pywin32_postinstall.py -install" manually should complete the
>> installation.
>>
>> HTH,
>>
>> Mark
>>>
>>> *From:* Vernon D. Cole <mailto:vernondcole at gmail.com>
>>> *Sent:* Thursday, April 18, 2013 7:12 PM
>>> *To:* Dinesh B Vadhia <mailto:dineshbvadhia at hotmail.com>
>>> *Cc:* python-win32 at python.org <mailto:python-win32 at python.org>
>>> *Subject:* Re: [python-win32] pywin32 and virtualenv
>>>
>>> The installers will find the correct installation from the Windows
>>> registry, and will install in the correct place, side by side, system
>>> wide.  I have installations varying from Python 2,3 to Python 3.3-64 on
>>> my laptop.
>>>
>>> Since installing Python 3.3, with its new Python loader, I have almost
>>> stopped using virtualenv, since I can easily pick my Python version from
>>> the command line:
>>> C:> py -3.2-32 myprog.py
>>> (But, of course, that is not the only reason for using virtualenv.)
>>> --
>>>
>>>
>>>
>>> On Thu, Apr 18, 2013 at 11:51 AM, Dinesh B Vadhia
>>> <dineshbvadhia at hotmail.com <mailto:dineshbvadhia at hotmail.com>> wrote:
>>>
>>>     __
>>>     Hi! This is my first question on the list and not sure if this
>>>     question has been asked as I can't find searchable archives.
>>>     When developing 32-bit and 64-bit applications in respective
>>>     virtualenv's, do pywin32-32 and pywin32-64 have to be installed in
>>>     the respective virtualenv's?  Or, are the two pywin32's installed
>>>     system-wide?
>>>
>>>     _______________________________________________
>>>     python-win32 mailing list
>>>     python-win32 at python.org <mailto:python-win32 at python.org>
>>>     http://mail.python.org/mailman/listinfo/python-win32
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> python-win32 mailing list
>>> python-win32 at python.org
>>> http://mail.python.org/mailman/listinfo/python-win32
>>>
>>
>>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> python-win32 mailing list
>> python-win32 at python.org
>> http://mail.python.org/mailman/listinfo/python-win32
>>
>>
>> ------------------------------
>>
>> End of python-win32 Digest, Vol 121, Issue 12
>> *********************************************
>>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32



More information about the python-win32 mailing list