Bad Version number
Hi, I try to run this script
import sys, os
sys.path.insert(0, r"C:\Program Files\PTI\PSSE33\PSSBIN") # xx --> substitute xx with Version Number here.
os.environ['PATH'] = r"C:\Program Files\PTI\PSSE33\PSSBIN" + ";" + os.environ['PATH']
import redirect
redirect.psse2py() # this redirects PSS(R)E progress, report output to Python Shell/Console
import psspy
CASE = r"H:\PortableAppscom\Documents\PSSE group\PSSPY\EMT_CAMax_SEP_12_Exp_PA_SN.sav"
psspy.psseinit(12000)
psspy.case(CASE)
But I got a pop up
"Bad version number 33 for program PSSE Was expecting 32"
I have installed both version.
Can you help me to find the problem?
Thanks, Waltter
@chip have you seen this error before?
I've seen this trying to get my environment setup. Try *env > debug_env.txt* and search through the text file for an errant v32 reference. Remove the v32 references from your environment until your script starts working.
I think this is because I installed the version 32 after the 33. Itried this script on another PC where I installer 32 before 33 and there is no problem. I'm going to reinstall the version 33
I think this is because I installed the version 32 after the 33. Itried this script on another PC where I installer 32 before 33 and there is no problem.
Well the error was fixed. I reinstalled the PSSE33, and now all is ok.