First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
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
2 | No.2 Revision |
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