Hi List,<br><br>First off, it&#39;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&#39;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 &quot;&lt;pyshell#3&gt;&quot;, line 1, in &lt;module&gt;<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&gt;c:\Python27\python.exe setup.py install<br>
Building pywin32 2.7.217.0<br>Traceback (most recent call last):<br>  File &quot;setup.py&quot;, line 1944, in &lt;module&gt;<br>    &quot;&quot;&quot; % dirs).split(),<br>  File &quot;setup.py&quot;, line 603, in __init__<br>
    if os.path.isfile(os.path.join(sdk_dir, &quot;include&quot;, &quot;activdbg.h&quot;)):<br>  File &quot;c:\Python27\lib\ntpath.py&quot;, line 96, in join<br>    assert len(path) &gt; 0<br>TypeError: object of type &#39;NoneType&#39; has no len()<br>
<br>C:\Users\ferdinand\Downloads\pywin32-217&gt;<br>----------------------------------------------------------------------------------------------<br><br>Any pointers?<br><br>Thanks in advance,<br>Ferdi<br><br>