Psspy, import

asked 2019-01-13 23:26:41 -0500

Rashid gravatar image

Hello everyone, I really appreciate it if anyone helps me with my big problem. I should import psspy, and I run this code: import os,sys

syspathPSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' #or where else you find the psspy.pyc sys.path.append(syspathPSSE) ospathPSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN' os.environ['PATH'] += ';' + ospathPSSE os.environ['PATH'] += ';' + syspathPSSE import dyntools import psspy

but, unfortunately, I got this error.

File "D:/...", line 11, in <module> import psspy

File ".\psspy.py", line 56, in <module>

ImportError: DLL load failed: %1 is not a valid Win32 application. does anyone know how to solve this error? My windows is 64-bit and my python version is also 64 bit, my psse is psse34explore. Thank you for help.

edit retag flag offensive close merge delete