Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Exception Thrown: No installs of PSSE found

I am trying to run a simple automation script with a sample case but have run into this error from core.py. I've tried implementing pssepath and using the os.environ method and am out of ideas on how to solve this. Any help would be greatly appreciated. I am running PSSE 35.2.

I think that its worth mentioning that I had to manually copy the pssepath folder to the location of my script for python to find it.

My code:

import os,sys

PSSELOCATION = r"C:\Program Files\PTI\PSSE35\35.2" sys.path.append(PSSELOCATION) os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION

import pssepath pssepath.add_pssepath()

import psspy

%%PSS/E Saved case

CASE = r"C:\Program Files\PTI\PSSE35\35.2\EXAMPLE\sample.sav"

if name == 'main':
psspy.psseinit(2000)
psspy.case(CASE) psspy.fnsl(

options1=0, # disable tap stepping adjustment.
options5=0, # disable switched shunt adjustment.   )

Console-

No installs of PSSE found. Stack trace

File "C:\Users\Darrshen\source\repos\PSSE\PSSE\pssepath\core.py", line 179, in getpssbinpaths_dict

raise PsseImportError("No installs of PSSE found.")

File "C:\Users\Darrshen\source\repos\PSSE\PSSE\pssepath\helpers.py", line 36, in wrap

cache[key] = fn(args, *kwargs)

File "C:\Users\Darrshen\source\repos\PSSE\PSSE\pssepath\core.py", line 188, in getpsselocations_dict

pssbinpaths = getpssbinpathsdict()

File "C:\Users\Darrshen\source\repos\PSSE\PSSE\pssepath\helpers.py", line 36, in wrap

cache[key] = fn(args, *kwargs)

File "C:\Users\Darrshen\source\repos\PSSE\PSSE\pssepath\core.py", line 232, in add_pssepath

psspypaths = getpsselocationsdict()

File "C:\Users\Darrshen\source\repos\PSSE\PSSE\pssepath\core.py", line 66, in wrapped

fn(args, *kwargs)

File "C:\Users\Darrshen\source\repos\PSSE\PSSE\PSSE.py", line 8, in <module> (Current frame)

pssepath.add_pssepath()

Loaded 'pssepath.core'

Loaded 'pssepath.helpers' Loaded 'main' Loaded 'runpy' The program 'python.exe' has exited with code 0 (0x0).'