<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Mar 18, 2016, at 8:48 AM, Andreas <<a href="mailto:anwohot@hotmail.com" class="">anwohot@hotmail.com</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;" class=""><span style="color: rgb(31, 73, 125); font-family: Calibri, sans-serif; font-size: 11pt;" class="">I have installed Python 2.7.11 - 64bit version on a Windows Server 2012 R2 Standard (</span><span class="" style="color: rgb(31, 73, 125); font-family: Calibri, sans-serif; font-size: 14.6667px;">64-bit version)</span></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-family: 'Times New Roman', serif; font-size: 12pt;" class="">...</div><div style="margin: 0cm 0cm 0.0001pt;" class=""><br class=""></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px;" class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; font-size: 12pt;" class="">>>></span> <b class="" style="color: rgb(31, 73, 125); background-color: aqua; font-size: 12pt;"><u class="">import pywintypes</u></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; background-position: initial initial; background-repeat: initial initial;" class="">Traceback (most recent call last):</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; background-position: initial initial; background-repeat: initial initial;" class=""> File "<stdin>", line 1, in <module></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; background-position: initial initial; background-repeat: initial initial;" class=""> File "D:\python27\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; background-position: initial initial; background-repeat: initial initial;" class=""> __import_pywin32_system_module__("pywintypes", globals())</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; background-position: initial initial; background-repeat: initial initial;" class=""> File "D:\python27\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; background-position: initial initial; background-repeat: initial initial;" class=""> import _win32sysloader</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="color: rgb(31, 73, 125); background-color: aqua; background-position: initial initial; background-repeat: initial initial;" class=""><b class=""><u class="">ImportError: DLL load failed: %1 is not a valid Win32 application.</u></b></span></div></div></div><br class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin-top: 0px; margin-bottom: 0px;" class="">What is the reason? How can I solve this problem?</div></div></div></blockquote><div><br class=""></div></div>It looks to me like you installed the 32-bit version of PyWin32. When you have a 64-bit Python, every extension you install has to be a 64-bit extension. Unlike the 16/32 transition, 64-bit Windows simply does not have the ability to mix 32-bit and 64-bit libraries in a single process.<div class=""><br class=""></div><div class="">It is for this reason that I still tend to choose 32-bit Python.<br class=""><div class="">
— <br class="">Tim Roberts, <a href="mailto:timr@probo.com" class="">timr@probo.com</a><br class="">Providenza & Boekelheide, Inc.
</div>
<br class=""></div></body></html>