Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImportError: DLL load failed: %1 is not a valid Win32 application.

I have used the following code to import psspy(my psse is PSSE 35), however I have got the following error:

import os, sys
sys_path_PSSE = r'C:\Program Files\PTI\PSSE35\35.2\PSSPY27'  # or where else you find the psspy.pyc
sys.path.append(sys_path_PSSE)
os_path_PSSE = r'C:\Program Files\PTI\PSSE35\35.2\PSSBIN'  # or where else you find the psse.exe

os.environ['PATH'] = ';' + ospathPSSE The error:

import psspy
File ".\psspy.py", line 56, in <module>
ImportError: DLL load failed: %1 is not a valid Win32 application.

could you help me with that? Thanks

ImportError: DLL load failed: %1 is not a valid Win32 application.

I have used the following code to import psspy(my psse is PSSE 35), however I have got the following error:

import os, sys
sys_path_PSSE = r'C:\Program Files\PTI\PSSE35\35.2\PSSPY27'  # or where else you find the psspy.pyc
sys.path.append(sys_path_PSSE)
os_path_PSSE = r'C:\Program Files\PTI\PSSE35\35.2\PSSBIN'  # or where else you find the psse.exe
os.environ['PATH'] = ';' + os_path_PSSE

os.environ['PATH'] = ';' + ospathPSSE The error:

import psspy
File ".\psspy.py", line 56, in <module>
ImportError: DLL load failed: %1 is not a valid Win32 application.

could you help me with that? Thanks