Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

redirect.psse2py error using PSSEv34 and python3.7.3

Hi everyone, I want to run .py file in PSSE, but I have some problem. Here's the code.

import time, socket, sys, os
sys.path.insert(0, 'C:\Program Files (x86)\PTI\PSSE34\PSSBIN')
os.environ['PATH'] = 'C:\Program Files (x86)\PTI\PSSE34\PSSBIN' + ';' + os.environ['PATH']
import psspy, redirect, pssarrays
redirect.psse2py()

Here's the error message. Could someone tell me why redirect.psse2py() not work? thanks.

Traceback (most recent call last):
  File "C:\Users\u027692\Desktop\V34_test\sa_1.05_V34.py", line 8, in <module>
    redirect.psse2py()
  File ".\redirect.py", line 147, in psse2py
redirect.RedirectError: Python currently sending output to Psse