question

CSN avatar image
0 Likes"
CSN asked CSN commented

FlexSim crashes when calling Python software

Hello everyone:

I encountered a problem, in the 2022.1 version, I simulated a very simple scenario of FlexSim calling Python. But strangely the model crashes, as shown in the GIF below: Is there any way to fix this situation? thanks.

flexsim-python.gif

FlexSim 22.1.0
python
flexsim-python.gif (4.5 MiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered CSN commented

Here are my thoughts:

  1. It looks like you picked the beta version, in the gif you showed. Please be sure to pick the released version, 22.1.1 or later. It also may be that the gif skipped a frame when you picked the correct version.
  2. Verify that python is available on your PATH. To verify, open a command prompt and run this command:
    1. python --version
    When you run this command, the command prompt should report a python version, rather than an error message.
  3. If the previous step gave you a version number (for example, mine reports 3.9.9), then you need to make sure that FlexSim is trying to connect to that version. The easiest way to check is to go to the Code tab in Global Preferences, and check the version there. Since my python version is 3.9.9, I use the 3.9 option:1652888613950.png

Let me know if you still are having trouble. But these are a few good things to try first.


1652888613950.png (12.6 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.