-
Notifications
You must be signed in to change notification settings - Fork 97
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: using numpy code that has been deprecated in v1.26.0 #441
Comments
While we have not yet solved the compatibility of PyTensor and NumPy v1.26.0, we have constrained our conda-forge packages so that new environments should enforce NumPy with <1.26.0, preventing the error from occurring. |
I get the same error if I compile numpy 1.25.2 using meson. (I think numpy 1.26 uses the meson build by default.) In the meson build of numpy 1.25.2, the |
That has the disadvantage that pytensor seems not to be installable for Python 3.12 as numpy<1.26 seems not to be installable on Python 3.12 |
PyTensor is explicitly not yet supported (nor tested) in Python 3.12 |
To discuss: If we don't support 3.12, maybe we should enforce this here in `pyproject.toml`? Source: <#441 (comment)> I'm not convinced that this is the right move since it might slightly hinder testing. But if we are explicit, then this seems to me like the correct place for it.
To discuss: If we don't support 3.12, maybe we should enforce this here in `pyproject.toml`? Source: <#441 (comment)> I'm not convinced that this is the right move since it might slightly hinder testing. But if we are explicit, then this seems to me like the correct place for it.
Describe the issue:
Numpy v1.26.0 was released on Sept. 16, 2023. It no longer has a
get_info()
method inside numpy.config which is used https://github.com/pymc-devs/pytensor/blob/main/pytensor/link/c/cmodule.py#L2720. This causes package import to fail because pytensor doesn't have a upper limit on the version of numpy that can be loaded.Reproducable code example:
Error message:
PyTensor version information:
pytensor v2.16.1
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: