Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

PSSPY39 import error

I'm trying to import PSSPY using the following code:

import os
import sys

PSSPY_PATH = r"C:\Program Files\PTI\PSSE35\35.4\PSSPY39"
sys.path.append(PSSPY_PATH)
os.environ['PATH'] += ';' + PSSPY_PATH

import psspy

psspy.psseinit(10)

Unfortunately, after running the above code, I get an error on the "import psspy" line:

ImportError: DLL load failed while importing psscommon: The specified module could not be found.

I checked the installation directory and I can see that "psscommon" file is available. Does anyone know how to solve this issue?