ImportError: No module named 'psspy'
import os import sys sys.path.append(r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN""") os.environ['PATH'] = (r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN;""" + os.environ['PATH'])
import psspy import redirect
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
import os import sys sys.path.append(r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN""") os.environ['PATH'] = (r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN;""" + os.environ['PATH'])
import psspy import redirect
what you entered:
import os
import sys
sys.path.append(r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN""")
os.environ['PATH'] = (r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN;""" + os.environ['PATH'])
import psspy
import redirect
It looks OK. is the path rigth for your installation? are psspy.pyc and psspyc.pyd located at that path? if not try re-installing PSSe.
Thanks, problem solved. Actually, I had installed Python 3.5 and was not compactable to PSSE32. I had to use the Python 25 which was within the PSSE 32 installation package.
Asked: 2016-11-21 03:01:22 -0600
Seen: 3,362 times
Last updated: Nov 21 '16