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

Update APIs to be compatible with NumPy 2.0 or pin NumPy to latest 1.x version #827

Open
HangenYuu opened this issue Jun 17, 2024 · 1 comment

Comments

@HangenYuu
Copy link
Contributor

Description

NumPy 2.0 introduced some breaking changes in APIs, which break code and make tests unable to run. One example is np.obj2sctype(dtype) used in pytensor/tensor/type.py:105, which was removed in NumPy 2.0, thus interfering with test run for tests/link/jax/test_nlinalg.py. I think we need to update the APIs to be compatiable with NumPy 2.0, or pint NumPy to the latest 1.x version for now, NumPy is currently 2.0.0 when creating the environment from environment.yml.

@ricardoV94
Copy link
Member

Regarding the API, it's tracked by #688

The dev environment should pin it, I thought we were already doing it from #692 but maybe not the dev envs?

@HAKSOAT HAKSOAT mentioned this issue Jun 25, 2024
11 tasks
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