Ask Your Question
0

problem importing psspy

asked 2023-07-18 10:55:55 -0500

valiantstar22 gravatar image

I am using PSSE 3.4k and I tried to import psspy with two different python versions. It can not import the psspy by python 3.9 (64bit). So, I tired python 2.7 (64). But I get this error: Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: Bad magic number in C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY34\psspy.pyc

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2023-07-18 20:11:53 -0500

jconto gravatar image

PSSE v34 is a 32 bit software so you cannot use a 64 bit python version. Install a v.32 bit version of python (like v.3.9) for Psse v.34

edit flag offensive delete link more

Comments

seriously???

nicoletheneighbor gravatar imagenicoletheneighbor ( 2023-07-28 13:25:58 -0500 )edit
0

answered 2023-07-27 22:35:47 -0500

Tassie Dave gravatar image

"Bad magic number" indicates an incompatibility between different versions of Python being used for compiling and loading the module. Python 2.7 sounds is for PSSE 34, so maybe the issue is the 32 bit / 64 bit issue.

edit flag offensive delete link more
0

answered 2023-07-21 01:55:48 -0500

You can use the python installer in directory : Program Files (x86)\PTI\PSSE34 Complete\ There are python installers and all other python related packages exist.

edit flag offensive delete link more
0

answered 2023-07-20 16:37:22 -0500

PapuShura gravatar image

Hello, you must change the environment variables in Windows, leave only the variables related to Python 3.

edit flag offensive delete link more

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

Stats

Asked: 2023-07-18 10:55:55 -0500

Seen: 433 times

Last updated: Jul 27 '23