Ask Your Question
0

Open PSSE35.0 in Python3.7

asked 2022-07-01 01:39:17 -0500

abkakar gravatar image

updated 2023-11-02 08:39:00 -0500

jconto gravatar image

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.

edit retag flag offensive close merge delete

Comments

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

tolemanator gravatar imagetolemanator ( 2022-08-23 12:55:11 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2023-11-02 08:48:02 -0500

jconto gravatar image

updated 2023-11-02 09:05:05 -0500

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
edit flag offensive delete link more
0

answered 2023-11-01 20:06:24 -0500

jbonilla gravatar image

updated 2023-11-01 23:41:26 -0500

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2022-07-01 01:39:17 -0500

Seen: 652 times

Last updated: Nov 02 '23