First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

problem importing psspy

asked Jul 18 '3

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

4 answers

Sort by » oldest newest most voted
0

answered Jul 19 '3

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

link

Comments

seriously???

nicoletheneighbor gravatar imagenicoletheneighbor (Jul 28 '3)
0

answered Jul 28 '3

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.

link
0

answered Jul 21 '3

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.

link
0

answered Jul 20 '3

PapuShura gravatar image

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

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Jul 18 '3

Seen: 552 times

Last updated: Jul 27 '23