0

Psspy Python Script Issues

Hello,

I am trying to updated some python scripts to be compatible with the new PSSe version 35. However, when I try to run the python script in an IDE (PyCharm), the script wold not execute and would give a "no module named excelpy" and "no module named psspy". Please give any advice on how to resolve this.

Library Import Statements:

import os, sys
import win32com.client
import string, pywintypes
import excelpy
import psspy as pp
from datetime import date
from datetime import datetime

mypath = os.path.dirname(os.path.abspath(__file__))
pp.psseinit(80000)
pp.lines_per_page_one_device(1, 60)

_i, _f = pp.getbatdefaults()
_s = pp.getdefaultchar()

_PSSBINPATH = r"C:\Program Files\PTI\PSSE35\35.6\PSSBIN"
os.environ['PATH'] = _PSSBINPATH + ';' + os.environ['PATH']
sys.path.append(_PSSBINPATH`enter code here`
Shigeru's avatar
1
Shigeru
asked 2024-03-13 09:40:34 -0500
jconto's avatar
2.9k
jconto
updated 2024-03-13 22:04:46 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

You have to import psse35 before excelpy and psspy.

perolofl's avatar
3.8k
perolofl
answered 2024-03-13 11:51:07 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer