No module named 'opensim._simbody'

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
zhang zheng
Posts: 1
Joined: Sat Oct 09, 2021 11:22 pm

No module named 'opensim._simbody'

Post by zhang zheng » Fri Mar 04, 2022 12:14 am

Hello everyone, I am new to OpenSim and I have recently developed a small program based on opensim using Python. Everything works fine when I run it in pycharm, but when I use pyinstller to package it as an exe, it will report an error when I run it again. The information in cmd is as follows:

Traceback (most recent call last):
File "main.py", line 2, in
import inputmodel.DialogInput
File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
File "inputmodel\DialogInput.py", line 6, in
import opensim
File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
File "opensim_init_.py", line 1, in
File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
File "opensim\simbody.py", line 18, in
File "opensim\simbody.py", line 17, in swig_import_helper
File "importlib_init_.py", line 127, in import_module
ModuleNotFoundError: No module named 'opensim._simbody'
[3848] Failed to execute script main


Any idea how to fix this problem?

kind regards.

Tags:

POST REPLY