MyoHub / myoconverter

A tool to convert opensim 4.0+ MSK models into MuJoCo format with optimized muscle kinematics and kinetics
Apache License 2.0
62 stars 5 forks source link

Pandas/Numpy Compatibility Error: Upgrade Numpy Required #29

Closed Ali-Foro closed 4 months ago

Ali-Foro commented 5 months ago

Error message:

ImportError: this version of pandas is incompatible with numpy < 1.22.4
your numpy version is 1.21.6.
Please upgrade numpy to >= 1.22.4 to use this pandas version

New Error After Upgrade Attempt:

AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
  https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?

I attempted to upgrade numpy using pip install --upgrade numpy, but encountered the above AttributeError

I'm really stuck on this. Has anyone else encountered this issue? Any help with potential causes or troubleshooting steps would be greatly appreciated. Thanks in advance!

Environment: pandas version: [2.1.1] Python version: [3.10.13] OS: [macOS]

unikkabhi commented 5 months ago

I got the same problem

julie1802 commented 5 months ago

I got the same issue. We tried Python 3.9,3.10 and 3.11. However, none of them seams to be compatible with the needed version of opensim and numpy(we also tried updating numpy from 1.21.6 to 1.22.4 and also to 1.26.4).

rogervankanten commented 4 months ago

I've created #32 to update numpy (1.23.5) and other packages. Numpy >= 1.24 is not supported yet because other packages that depend on it are still using aliases like 'np.bool' that were deprecated since version 1.24.