[Bug Report] Numpy no longer supports numpy.core
High Level Description
I have been having problems launching the sanity test after following the installation instructions:
E ImportError: numpy.core.multiarray failed to import
After reinstalling the libraries several times, removing the virtual environment and starting over, I did some testing when I found this:
python
Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> from numpy.core import multiarray
<stdin>:1: DeprecationWarning: numpy.core is deprecated and has been renamed to numpy._core. The numpy._core namespace contains private NumPy internals and its use is discouraged, as NumPy internals can change without warning in any release. In practice, most real-world usage of numpy.core is to access functionality in the public NumPy API. If that is the case, use the public NumPy API. If not, you are using NumPy internals. If you would still like to access an internal attribute, use numpy._core.multiarray.
Version
Latest
Steps to reproduce the bug
Just follow the installation steps with python 3.10 instead of 3.8
System info
Ubuntu 22.04.4 LTS Python 3.10.12 Numpy 2024/09/10
Error logs and screenshots
No response
Impact (If known)
Cannot use SMARTS
It seems that everything is pybullet's problem, they have an open issue, I don't close the issue in case you don't know about the existence of this error.
i did as you say using python 3.10 instead of 3.8, but it didnt work.
Actually, the bug is caused by using python versions above 3.8. SMARTS uses numpy libraries which have been renamed in python 3.10. Try installing it by creating a virtual environment with python 3.8. @Mikarsa
I created this issue to either change the installation instructions saying that the virtual environment cannot be created with python versions higher than 3.8 or to update the way they use numpy.core to numpy._core and use more modern python versions such as 3.10.