Ask Your Question

Revision history [back]

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).