question

Wesley GMP avatar image
0 Likes"
Wesley GMP asked Logan Gold commented

FlexSimPy - DLL load failed...: Could not find the specified module.

Goodnight,

Can anyone help me with this error:

Traceback (most recent call last): File "c:/Users/neaad/Documents/AmbienteDesenvolvimentoFlexsim/FlexSim 2023 Update 1/modules/FlexSimPy/out/Rel_3_10/teste.py", line 1, in import FlexSimPy as fp ImportError: DLL load failed while importing FlexSimPy: Could not find the specified module.

I'm trying to use FlexSimPy with Python, but I got this error. And where can I get this DLL?

FlexSim 23.1.0
flexsimpydll error
· 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Wesley GMP, was Lucas Klein'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Lucas Klein avatar image
0 Likes"
Lucas Klein answered

Hello @Wesley GMP ,

There are some steps to follow before you can connect a Python code to your FlexSim model, I suggest you to take a look at the step-by-step configuration at:

https://docs.flexsim.com/en/24.0/Reference/DeveloperAdvancedUser/ConnectingToExternalCode/ConnectingToExternalCode.html#python

There you can find all the information needed to connect your FlexSim to an external code, and about your question where to get the DLL, you can found it in the Downloads page of your FlexSim Account on the "Modules" Session:

1721940916273.png

You can also find some information at the README file on FlexSim Github about how to allow FlexSimPy to work on your FlexSim distribution

https://github.com/flexsim/FlexSimPy/blob/master/README.md


1721940916273.png (83.4 KiB)
5 |100000

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