You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got the following error when trying to use numpy 2.0.2:
root@mysimulator:~# pip install numpy==2.0.2 -i https://pypi.org/simple
Collecting numpy==2.0.2
Downloading numpy-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.5 MB)
|████████████████████████████████| 19.5 MB 11.7 MB/s
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.26.4
Uninstalling numpy-1.26.4:
Successfully uninstalled numpy-1.26.4
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
genesis-world 0.2.1 requires numpy==1.26.4, but you have numpy 2.0.2 which is incompatible.
Successfully installed numpy-2.0.2
root@mysimulator:~# vi hello_genesis.py
root@mysimulator:~# python3 hello_genesis.py
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "/root/hello_genesis.py", line 1, in <module>
import genesis as gs
File "/usr/local/lib/python3.9/dist-packages/genesis/__init__.py", line 276, in <module>
from .engine.scene import Scene
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/scene.py", line 5, in <module>
from genesis.engine.entities import Emitter
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/__init__.py", line 1, in <module>
from .avatar_entity import AvatarEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/avatar_entity/__init__.py", line 1, in <module>
from .avatar_entity import AvatarEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/avatar_entity/avatar_entity.py", line 3, in <module>
from ..rigid_entity import RigidEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/rigid_entity/__init__.py", line 1, in <module>
from .rigid_entity import RigidEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/rigid_entity/rigid_entity.py", line 8, in <module>
from genesis.utils import mesh as mu
File "/usr/local/lib/python3.9/dist-packages/genesis/utils/mesh.py", line 12, in <module>
import tetgen
File "/usr/local/lib/python3.9/dist-packages/tetgen/__init__.py", line 2, in <module>
from tetgen import _tetgen
Traceback (most recent call last):
File "/root/hello_genesis.py", line 1, in <module>
import genesis as gs
File "/usr/local/lib/python3.9/dist-packages/genesis/__init__.py", line 276, in <module>
from .engine.scene import Scene
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/scene.py", line 5, in <module>
from genesis.engine.entities import Emitter
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/__init__.py", line 1, in <module>
from .avatar_entity import AvatarEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/avatar_entity/__init__.py", line 1, in <module>
from .avatar_entity import AvatarEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/avatar_entity/avatar_entity.py", line 3, in <module>
from ..rigid_entity import RigidEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/rigid_entity/__init__.py", line 1, in <module>
from .rigid_entity import RigidEntity
File "/usr/local/lib/python3.9/dist-packages/genesis/engine/entities/rigid_entity/rigid_entity.py", line 8, in <module>
from genesis.utils import mesh as mu
File "/usr/local/lib/python3.9/dist-packages/genesis/utils/mesh.py", line 12, in <module>
import tetgen
File "/usr/local/lib/python3.9/dist-packages/tetgen/__init__.py", line 2, in <module>
from tetgen import _tetgen
File "tetgen/cython/tetgen/_tetgen.pyx", line 1, in init tetgen._tetgen
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use '<void>numpy._import_array' to disable if you are certain you don't need it).
The text was updated successfully, but these errors were encountered:
Is there a plan to support numpy 2.0?
Got the following error when trying to use numpy 2.0.2:
The text was updated successfully, but these errors were encountered: