Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Numpy no longer supports numpy.core #2162

Open
dduro2020 opened this issue Sep 10, 2024 · 4 comments
Open

[Bug Report] Numpy no longer supports numpy.core #2162

dduro2020 opened this issue Sep 10, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@dduro2020
Copy link

dduro2020 commented Sep 10, 2024

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

@dduro2020 dduro2020 added the bug Something isn't working label Sep 10, 2024
@dduro2020
Copy link
Author

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.

@Mikarsa
Copy link

Mikarsa commented Nov 19, 2024

i did as you say using python 3.10 instead of 3.8, but it didnt work.

@dduro2020
Copy link
Author

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

@dduro2020
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants