Porting PSSPY to Python 3
Has anyone had any luck importing PSSPY using Python 3? I'd really prefer to write code in Python 3, rather than 2.5 just to use PSSPY. Sorry if this has already been answered.
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
Has anyone had any luck importing PSSPY using Python 3? I'd really prefer to write code in Python 3, rather than 2.5 just to use PSSPY. Sorry if this has already been answered.
Hi Jack,
short answer: You can't write Python 3 code for PSSE.
PSSE 32 uses Python2.5 for its psspy
and other library files.
PSSE 33 uses Python2.7 for its psspy
and other library files.
But I haven't seen a version yet that comes ready for Python 3
That leaves the option for porting their psspy
file. The problem though is that they only distribute a pyc file, which is the Python bytecode file, compiled for a specific version - so we don't have access to the source code.
The psspy.pyc
file calls a Python pyd file which is a compiled library type file for Python. It looks like we can't port because both of these files are compiled against a specific Python version (2.5 or 2.7).
I believe if you use PSSe 35 you can use Python 3
Asked: 2012-04-23 14:48:15 -0500
Seen: 1,464 times
Last updated: Aug 08 '22
Vector groups and two_winding_chng_4
Retrieve MW and MVAR from Load
Python shell restart while trying to run "psspy.strt" command
AttributeError: module 'openpyxl' has no attribute 'load_workbook' [closed]
I don't have psspy, in my files of PSS/E. Can anyone send it to me?
Merge cells in the range (excelpy)
get bus number using facts device name
How to change the python version from the default in PSSE 34.9.3 ?