[python-win32] Installing pywin32 for Python 2.7 AMD64

Ferdinand Sousa ferdinandsousa at gmail.com
Fri Jun 15 18:20:26 CEST 2012


Hi List,

First off, it's good to be back after 3 years!!

I was dusting off some old scripts I had written using pywin32. (Python 2.5
era I think). It uses the win32con and win32api modules.

Now I'm trying to use the same scripts with Python 2.7 AMD64 version.

I downloaded pywin32-217.win-amd64-py2.7.exe from the sourceforge site and
installed it. At the end, I see the following message:
----------------------------------------------------------------------------------------------
Postinstall script finished
Click the Finish button to exit the setup wizard

close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
----------------------------------------------------------------------------------------------

Then, I tried importing win32con and it works. But, when I tried importing
win32api, win32gui I get the error message:

----------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    import win32api, win32gui
ImportError: DLL load failed: The specified module could not be found.
----------------------------------------------------------------------------------------------

So I uninstalled pywin32 and tried installing it from source. But alas, I
again hit a roadblock:

----------------------------------------------------------------------------------------------
C:\Users\ferdinand\Downloads\pywin32-217>c:\Python27\python.exe setup.py
install
Building pywin32 2.7.217.0
Traceback (most recent call last):
  File "setup.py", line 1944, in <module>
    """ % dirs).split(),
  File "setup.py", line 603, in __init__
    if os.path.isfile(os.path.join(sdk_dir, "include", "activdbg.h")):
  File "c:\Python27\lib\ntpath.py", line 96, in join
    assert len(path) > 0
TypeError: object of type 'NoneType' has no len()

C:\Users\ferdinand\Downloads\pywin32-217>
----------------------------------------------------------------------------------------------

Any pointers?

Thanks in advance,
Ferdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120615/775637c9/attachment.html>


More information about the python-win32 mailing list