Skip to content

Instantly share code, notes, and snippets.

@cwebber314
Last active August 10, 2022 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwebber314/454de95945fdb0bca3b2dae5a94793c4 to your computer and use it in GitHub Desktop.
Save cwebber314/454de95945fdb0bca3b2dae5a94793c4 to your computer and use it in GitHub Desktop.
PSSE Environment Debug Notes

PSSE Environment Debug

Sometimes a PSSE won't open after install. This is almost always caused by an unexpected Python configuration.

If you're struggling with MOD, see the MOD Debug Notes

Debug: Instant close

Behavior:

  • Start PSSE
  • result: PSSE splash screen appears, then PSSE instantly closes.

This one is painful because there are no error message. The best way to get some usable error messages is to run PSSE in the command line.

Open cmd.exe then run this command:

"C:\Program Files\PTI\PSSE35\35.4\PSSBIN\pssecmd35.exe"

If you see a python error about the encoding library, this section is for you.

This bug happens because the Python version that PSSE finds is not compatible. You can fix this by setting your user environment variable PYTHONHOME to the location of your Python3.9 64bit installation.

Make sure you set your user variables not the system variables. To set env variables see Google

Setting PYTHONHOME can sometimes have undesired behavior. You can also launch PSSE from a bat file that looks something like this:

SET PYTHONHOME=c:\Python39
start "" "C:\Program Files\PTI\PSSE35\35.4\PSSBIN\PSSE35.exe" %*

The Sneaky Python

When you start PSSE it adds the the PATH found in this registry key to your python sys.path:

> reg query HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\3.9\InstallPath

HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\3.9\InstallPath
    (Default)    REG_SZ    c:\Python39\

If this registry entry points to the incompatible version of Python it will probably cause issues.

PATH env variable

PSSE seems to ignore the PATH env variable when it looks for the python install it's going to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment