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.
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.
Hi @CSN, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
Here are my thoughts:
python --versionWhen you run this command, the command prompt should report a python version, rather than an error message.
Let me know if you still are having trouble. But these are a few good things to try first.
Thanks for your answer, I followed your prompt to set up and updated the software to 22.1.2. When I tested it again, The software did not prompt an error, it was forced to quit, just like the first GIF. Is there any other solution? thanks.
One thing to verify is that python itself is 64 bit. If you just enter "python" in the command line, you'll some additional information about the version:
Please verify that your python in 64-bit.
Other than that, I'm not sure what the issue could be. Perhaps having multi-byte characters in your PATH is an issue?
You may be able to build your own version of the PyConnector. We supply the code in this repository:
https://github.com/flexsim/FlexSimPy
You may also be able to build that project, and then debug it, to see what is happening when FlexSim tries to access that dll.
8 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved