Ask Your Question

Does Python 3.6 can work with psse

asked 2018-08-23 18:59:53 -0500

Gary22212 gravatar image

updated 2018-09-03 11:45:24 -0500

Dear everyone,

I know PSSe33 was built as a 32-bit application. and python2.7 of 32-bit works fine with PSSe33.04 in my work.

Does anyone know can PSSe work with python 3.6 of 32-bit? I tried but failed, the problem first happened at "import psspy", and the console indicates "bad magic number in psspy..."

Maybe there are problems in my settings, or there are restrictions in PSSe version?

And I also failed to make python of 64-bit (either 3.6 or 2.7) work with PSSe.

Thanks in advance!


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-09-03 06:21:54 -0500

jfconroy gravatar image

Hello Gary,

As far as I know, the Python modules for PSSE are compiled in v2.X of Python (note how there are numerous *.pyc files in the installation directories). Therefore, I doubt that everything will work correctly in Python v3.X.

edit flag offensive delete link more


Thank you jfconroy, yes now in my experience, only v2.X, 32 bit of Python can work with PSSe API.

Gary22212 gravatar imageGary22212 ( 2018-09-03 11:48:35 -0500 )edit

Psse v.34.4 also installs python 3.4 in addition to v.2.7, while PSSe v33 only install python 2.7 therefore other python versions would give the 'magic number' error when trying to load PSSe pyc modules.

jconto gravatar imagejconto ( 2018-09-03 19:46:48 -0500 )edit

Good to know that! Thank you, Mr Conto.

Gary22212 gravatar imageGary22212 ( 2018-09-03 21:50:25 -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: 2018-08-23 18:59:53 -0500

Seen: 333 times

Last updated: Sep 03 '18