Ask Your Question
0

Open PSSE35.0 in Python3.7

asked Jul 1 '2

abkakar gravatar image

updated Nov 2 '3

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.

Comments

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

tolemanator gravatar imagetolemanator (Aug 23 '2)

2 answers

Sort by » oldest newest most voted
0

answered Nov 2 '3

jconto gravatar image

updated Nov 2 '3

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
link
0

answered Nov 2 '3

jbonilla gravatar image

updated Nov 2 '3

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

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Jul 1 '2

Seen: 820 times

Last updated: Nov 02 '23