Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Open PSSE35.0 in Python3.7

Hi! I tried following script to open PSSE35.0 in Python 3.7:

import os, sys

PSSE_LOCATION = r"C:\Program Files\PTI\PSSE35\35.0\PSSPY37"

sys.path.append(PSSE_LOCATION)

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

import psspy

But it gave following error:

DLL load failed: The specific module could not be found.

How can i fix this issue?

I tried to use Python 2.7 as well but the error is same.

click to hide/show revision 2
No.2 Revision

Open PSSE35.0 in Python3.7

Hi! I tried following script to open PSSE35.0 in Python 3.7:

import os, sys

sys

PSSE_LOCATION = r"C:\Program Files\PTI\PSSE35\35.0\PSSPY37"

Files\PTI\PSSE35\35.0\PSSPY37" sys.path.append(PSSE_LOCATION)

sys.path.append(PSSE_LOCATION)

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

import psspy

psspy

But it gave following error:

DLL load failed: The specific module could not be found.

How can i fix this issue?

I tried to use Python 2.7 as well but the error is same.