[python-win32] Python 2.7.11 on Windows Server 2012 R2 standard - Error message "DLL load failed: %1 is not a valid Win32 application" after IMPORT WIN32SERVICE
Andreas
anwohot at hotmail.com
Fri Mar 18 11:48:28 EDT 2016
Hello,
I have installed Python 2.7.11 - 64bit version on a Windows Server 2012 R2 Standard (64-bit version)
from
www.python.org/downloads/windows/<https://www.python.org/downloads/windows/>
[cid:image001.png at 01D1812B.49530750]
where I used the x86-64 MSI Installer
No problems so far.
When I run the following commands I get error messages:
PS D:\> python27\python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import sys
>>> import glob
>>> import datetime
>>> import time
>>> import platform
>>> import win32service
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: %1 is not a valid Win32 application.
>>> import pywintypes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\python27\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module>
__import_pywin32_system_module__("pywintypes", globals())
File "D:\python27\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__
import _win32sysloader
ImportError: DLL load failed: %1 is not a valid Win32 application.
What is the reason? How can I solve this problem?
Best regards
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20160318/54661aff/attachment.html>
More information about the python-win32
mailing list