First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version | asked 2016-01-11 20:37:41 -0600 Anonymous |
I am trying to run the psse using python script provided below. However, the trace back says unable to find module psspy. The psspy.dll is present in PSSBIN. The paths are correct and I have tried many variations of the code but it doesn't work. I would really appreciate any help.
import os import sys PSSEPATH=r'C:\PROGRA~2\PTI\PSSE30\PSSBIN' sys.path.append(PSSEPATH) os.environ['PATH']=os.environ['PATH']+';'+PSSE_PATH os.chdir(r'c:\users\xxxx\desktop\python scripts') import psspy import redirect
Error message
Traceback (most recent call last): File "ps2py.py", line 7, in <module> import psspy ImportError: No module named psspy