Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

importing psspy module in a python sript

I use the code

import os,sys

PSSELOCATION = r"D:\COMPONENTELOGICA\PSSE\PSSE30\PSSBIN"

sys.path.append(PSSE_LOCATION)

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

import psspy

And I get this:

Traceback (most recent call last): File "<console>", line 1, in <module> File ".\psspy.py", line 56, in <module> ImportError: DLL load failed: it is not a valid win32 program

I checkeed the PSSE bin folder and I could not find a psspy.dll. There is a psspyc.pyd. Is the psspy.dll missing? Where can I get one?

click to hide/show revision 2
No.2 Revision

importing psspy module in a python sript

I use the code

import os,sys

os,sys PSSE_LOCATION = r"D:\COMPONENTE_LOGICA\PSSE\PSSE30\PSSBIN"

PSSELOCATION = r"D:\COMPONENTELOGICA\PSSE\PSSE30\PSSBIN"

sys.path.append(PSSE_LOCATION)

sys.path.append(PSSE_LOCATION)

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

import psspy

psspy

And I get this:

Traceback (most recent call last): File "<console>", line 1, in <module> File ".\psspy.py", line 56, in <module> ImportError: DLL load failed: it is not a valid win32 program

I checkeed the PSSE bin folder and I could not find a psspy.dll. There is a psspyc.pyd. Is the psspy.dll missing? Where can I get one?