🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Error when executing python file generated from .psimsch file

User: "Mario_Steiner"
Altair Community Member

I generated a .py file using the "Save as Python Code" function in the "File" tab.

When i want to run this .py file then, i recieve the error:

from .Psim_Class import PSIM

ImportError: bad magic number in 'psimapipy.Psim_Class': b'U\r\r\n'

I executed the Altair_PSIM_2024.1\Python\Source\dist\psimapipy-2024.0-py3-none-any.whl and the .bat files in Altair_PSIM_2024.1\Python\Source\

Did i mess up the installation?

Find more posts tagged with