0

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.

abkakar's avatar
11
abkakar
asked 2022-07-01 01:39:17 -0500
jconto's avatar
2.9k
jconto
updated 2023-11-02 08:39:00 -0500
edit flag offensive 0 remove flag close merge delete

Comments

did you figure this one out? I have the same issue

tolemanator's avatar tolemanator (2022-08-23 12:55:11 -0500) edit
add a comment see more comments

2 Answers

0

Hi, to solve this problem with the DLL just import first psse35(import psse35) and then import psspy.

jbonilla's avatar
1
jbonilla
answered 2023-11-01 20:06:24 -0500, updated 2023-11-01 23:41:26 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

In my set up, the installation of PSSe35 installed psspy39, psspy37, psspy27 but only installed python 3.9 Other python versions are left to the user to install them. But they have to be 64-bit version!

As @jbonilla stated:

import os, sys
import psse35
import psspy
jconto's avatar
2.9k
jconto
answered 2023-11-02 08:48:02 -0500, updated 2023-11-02 09:05:05 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer