Python Forum
[WinError 193] %1 is not a valid Win32 application
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WinError 193] %1 is not a valid Win32 application
#1
Hello people,

I am pretty new at working with python and I am encoutering the error as stated in the subject. Full error:
Error:
Traceback (most recent call last):   File "C:\Users\Joan\workspace2\Model\src\main.py", line 6, in <module>     import lib_pct_build_network   File "C:\Users\Joan\workspace2\Model\src\lib_pct_build_network.py", line 4, in <module>     from lib_pct_read_network import *   File "C:\Users\Joan\workspace2\Model\src\lib_pct_read_network.py", line 5, in <module>     PCTr=CDLL("./LibPCTReadNetwork.so")   File "C:\Users\Joan\Anaconda3\lib\ctypes\__init__.py", line 347, in __init__     self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application
I have already googled it and many answers say it is a bit 32bit vs 64bit issue. However I don't know what the problem would be  :huh:

I use a 32bit eclipse with PyDev plugin
I have python 3.5 (32 bits)
Windows 7

Is there anything else that should be 32bits? Any help is appreciated :-)
Reply


Messages In This Thread
[WinError 193] %1 is not a valid Win32 application - by Zest - Oct-17-2016, 08:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020