Ich habe versucht, ein Programm in Python mit Snap7, aber jetzt will ich es eine ausführbare Datei machen. Ich habe py2exe verwendet, um die * .exe-Datei zu erstellen und unter Windows zu starten, ohne dass Python installiert war. Jedes Mal, wenn ich versuche, die Anwendung zu öffnen, zeigt das Cmd-Fenster diesen Fehler an.Making ein ausführbares Python-Programm mit Snap7 für PLCs
Traceback (most recent call last):
File "Sniffer.py", line 22, in <module>
File "snap7\client.pyc", line 34, in __init__
File "snap7\common.pyc", line 54, in load_library
File "snap7\common.pyc", line 47, in __init__
File "ctypes\__init__.pyc", line 440, in LoadLibrary
File "ctypes\__init__.pyc", line 362, in __init__
WindowsError: [Error 193] %1 is not a valid Win32 application
Was soll ich tun?