Ask Your Question

Revision history [back]

When the Python version which is by default used in windows (you can notice that by typing the following in cmd window:
python

If you open the PSSE installation folder, you should have the same version of PSSPY folder, otherwise, the bad magic error happens.

For example, if you are using Python 3.11, you must have PSSPY311 in the PSSE installation folder (C:\Program Files\PTI\PSSE35\35.6\PSSPY311), other wise, running the Py script won't be successful.

When the Python version which is by default used in windows (you can notice that by typing the following in cmd window:
python

If you open the PSSE installation folder, you should have the same version of PSSPY folder, otherwise, the bad magic error happens.

For example, if you are using Python 3.11, you must have PSSPY311 in the PSSE installation folder (C:\Program Files\PTI\PSSE35\35.6\PSSPY311), other wise, running the Py script won't be successful.

One trick would be to delete all non-relevant Python versions from your computer by control panel/remove programs

When the The Python version which is by default used in windows (you can notice that be seen by typing the following in cmd window:
python

If you open the PSSE installation folder, you should have the same version of PSSPY folder, otherwise, the bad magic error happens.

For example, if you are using Python 3.11, you must have PSSPY311 in the PSSE installation folder (C:\Program Files\PTI\PSSE35\35.6\PSSPY311), other wise, running the Py script won't be successful.

One trick would be to delete all non-relevant Python versions from your computer by control panel/remove programs