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

NumPy Issue in version 1.10.1 #617

Open
SaeedRahmani opened this issue Sep 2, 2024 · 4 comments
Open

NumPy Issue in version 1.10.1 #617

SaeedRahmani opened this issue Sep 2, 2024 · 4 comments

Comments

@SaeedRahmani
Copy link

Hi,
Thanks for the great work. After installing the latest version (1.10.1), I get the following error:

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'.

Should I just simply downgrade to NumPy 1.26 and Are you aware of this issue?

@pseudo-rnd-thoughts
Copy link
Member

Are you sure that this is an issue with Highway-env as it doesn't use pybind11?
It might be related to a module used within highway-env

Are you using atari (ale-py) as I know this had an issue with numpy 2.0 previously?

@SaeedRahmani
Copy link
Author

Thanks for the response. I am quite sure (unless I did something that I shouldn't have done.). I explain what I did:
I first cloned the latest version (1.10.1) and installed an editable version using pip inside a conda environment. Then it gave me an error that stable-baseline is not compatible with Gymnasium v1, so I downgraded the Gymnasium to 0.29, and then the previous error was fixed and I got this error. After downgrading to NumPy 1.26 the issue is gone and I can run the models.

@pseudo-rnd-thoughts
Copy link
Member

Could you just clone highway env and import highway_env as I would guess that there is a problem with SB than highway-env or gymnasium

@SaeedRahmani
Copy link
Author

Sorry for my late reply. To double-check, you mean I clone the repo and NOT install it using pip install -e .? Also, by import highway_env you mean I change the line import highway_env to from highway_env import ...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants