Error running PSSE from Python
Whenever I try to run PSSE from Python I get the following message in the python interpreter:
"Could not find INI file: "ÝÊ.INI" Program will attempt to run anyway...
PSS(R)E University Version 33 Copyright (c) 1976-2013 Siemens Industry, Inc., Power Technologies International (PTI) This program is a confidential unpublished work created and first licensed in 1976. It is a trade secret which is the property of PTI. All use, disclosure, and/or reproduction not specifically authorized by PTI is prohibited. This program is protected under copyright laws of non-U.S. countries and by application of international treaties. All Rights Reserved Under The Copyright Laws."
And then the interpreter stops working.
I'm using Python 2.7 and PSSE University 33. I've already tried to reinstall PSSE , tried with PSSE University 32 and I always get the same error.
Any ideas about whats causing this?
Thanks in advance.
EDIT: This is the code I'm trying to run:
CASE = r"C:\Users\N\Desktop\PDIS\03_10.sav"
psspy.psseinit(5)
psspy.case(CASE)
psspy.fnsl(
options1=0,
options5=0,
)
How are you initializing the solution engine?
What do you mean with "solution engine"? I edited my inicial post with the code I'm trying to run.
Looks like you're doing it right. I just wanted to make sure you were using `psspy.psseinit()`. Although I would try a bigger value than 5, although I wouldn't think this would cause the issue you're seeing.
You say that you are running from Python, in which case you may need to set up the correct environment variables (we've found this is the case for us): http://www.whit.com.au/blog/2011/07/run-psse-from-python-and-not-other-way/ I wrote with some example code there