ezc3d: Python bindings incompatibility with Opensim 4.3

Hi @pariterre! I’ve a weird problem with ezc3d + opensim 4.3

In a clean conda env:

cd c:\Opensim 4.3\sdk\Python
call conda create -c conda-forge -n Opensim python=3.8 numpy -y
call conda activate Opensim
python setup.py install
python -c "import opensim"

works fine. Yet including ezc3d…

cd c:\Opensim 4.3\sdk\Python
call conda create -c conda-forge -n Opensim_ezc3d python=3.8 numpy ezc3d -y
call conda activate Opensim_ezc3d
python setup.py install
python -c "import opensim"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\OpenSim 4.3\sdk\Python\opensim\__init__.py", line 7, in <module>
    from .common import *
  File "c:\OpenSim 4.3\sdk\Python\opensim\common.py", line 13, in <module>
    from . import _common
ImportError: DLL load failed while importing _common: No se encontró el proceso especificado.

I’m using Python 3.8 (required for OpenSIM 4.3), Windows 10 x64.

Any suggestions? This might be an OpenSIM issue though

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

I think that after activating the conda environment, everything within that environment loads first in the PATH. That’s why ezc3d works and OpenSIM doesn’t, regardless of the install order.