Ask Your Question

Error running PSSE from Python 3.7.3

asked 2021-01-25 18:11:07 -0500

windcrusader gravatar image

updated 2021-01-25 18:13:43 -0500

I get the following error in my Python script following the psspy.psseinit(2000) command. Has anyone seen this before and do they know what the fix is?

PSS(R)E Version 34 Copyright (c) 1976-2021 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.

File "C:\Users\bradh\AppData\Local\Programs\Python\Python373\lib\", line 177 file=sys.stderr) ^ SyntaxError: invalid syntax

Running PSS/E V34.7.0 on Win 10

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2021-01-26 13:56:55 -0500

windcrusader gravatar image

updated 2021-02-01 15:17:30 -0500


I have managed to resolve this issue by uninstalling various extraneous installations of Python on the machine e.g Anaconda installs etc. It seems there must have been some kind of path issue or similar which was pointing PSS/E to the wrong Python files or executables.

The Python installed is the 32 bit version. The manual says 34.7.0 is compatible with Python 3.7 and comes bundled with 3.7.3 so it should work. However, I note the version I downloaded is a release candidate 34.7.0 RC3, so perhaps there is a bug?

edit flag offensive delete link more


During PSSe installation, select the option to install python 3.7 You do not have to download it.

jconto gravatar imagejconto ( 2021-01-26 16:48:09 -0500 )edit

answered 2021-01-26 10:57:39 -0500

jconto gravatar image

updated 2021-01-26 10:59:54 -0500

PSSe 34 installs python 3.7, 32-bit at c:\python37

Your python path "C:\Users\bradh\AppData\Local\Programs\Python\Python373\lib\" seems to be from a process other that PSSe and such python could be 64-bit. PSSe v.34 only work with python in 32-bit format. Consider uninstalling those extra python version and re-install PSSe 34 with default python v.3.7

edit flag offensive delete link more


nope it's 32 bit.

windcrusader gravatar imagewindcrusader ( 2021-01-26 13:57:29 -0500 )edit

answered 2021-01-26 07:50:40 -0500

likethevegetable gravatar image

The last time I checked, PSSE V34 is compatible with Python 3.4.

edit flag offensive delete link more


PSSE v34.8.0 works with Python v.3.4 or v.3.7, also v.2.7 but the installation process only install python 3.7

jconto gravatar imagejconto ( 2021-01-26 10:46:07 -0500 )edit

OP is running V34.7.0, perhaps that's not compatible.

likethevegetable gravatar imagelikethevegetable ( 2021-01-26 10:57:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2021-01-25 18:11:07 -0500

Seen: 1,614 times

Last updated: Feb 01 '21