Hi List,<br><br>First off, it's good to be back after 3 years!!<br><br>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.<br><br>Now I'm trying to use the same scripts with Python 2.7 AMD64 version.<br>
<br>I downloaded pywin32-217.win-amd64-py2.7.exe from the sourceforge site and installed it. At the end, I see the following message:<br>----------------------------------------------------------------------------------------------<br>
Postinstall script finished<br>Click the Finish button to exit the setup wizard<br><br>close failed in file object destructor:<br>sys.excepthook is missing<br>lost sys.stderr<br>----------------------------------------------------------------------------------------------<br>
<br>Then, I tried importing win32con and it works. But, when I tried importing win32api, win32gui I get the error message:<br><br>----------------------------------------------------------------------------------------------<br>
Traceback (most recent call last):<br> File "<pyshell#3>", line 1, in <module><br> import win32api, win32gui<br>ImportError: DLL load failed: The specified module could not be found.<br>----------------------------------------------------------------------------------------------<br>
<br>So I uninstalled pywin32 and tried installing it from source. But alas, I again hit a roadblock:<br><br>----------------------------------------------------------------------------------------------<br>C:\Users\ferdinand\Downloads\pywin32-217>c:\Python27\python.exe setup.py install<br>
Building pywin32 2.7.217.0<br>Traceback (most recent call last):<br> File "setup.py", line 1944, in <module><br> """ % dirs).split(),<br> File "setup.py", line 603, in __init__<br>
if os.path.isfile(os.path.join(sdk_dir, "include", "activdbg.h")):<br> File "c:\Python27\lib\ntpath.py", line 96, in join<br> assert len(path) > 0<br>TypeError: object of type 'NoneType' has no len()<br>
<br>C:\Users\ferdinand\Downloads\pywin32-217><br>----------------------------------------------------------------------------------------------<br><br>Any pointers?<br><br>Thanks in advance,<br>Ferdi<br><br>