Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImportError: No module named psspy

I have PsseExplore34, and python 2.7.13, and my PSSE path is

C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN

and psspy.pyc is there

C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY34

and C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27

this is part of my code that import psse

import os,sys

PSSE_PATH = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'

sys.path.append(PSSE_PATH)

os.environ['PATH'] += ';' + PSSE_PATH

import psspy

,but whenever I run it I got this error message ImportError: No module named psspy I put this line import psse34 before impoert psspy, but it still does not work.

what should I do?