-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
BUG: Not working with numpy 2+ (np.obj2sctype
was removed in the NumPy 2.0 release.)
#7592
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
Comments
|
I forced installed pymc version 5.18.2 with |
Sorry, |
np.obj2sctype
was removed in the NumPy 2.0 release.)np.obj2sctype
was removed in the NumPy 2.0 release.)
@mauhcs pymc is not compatible with numpy 2.0, due to PyTensor not being compatible with it. Relevant issue to track: pymc-devs/pytensor#688 |
With the landing of #1194 in Related, Colab currently provides |
By next week the latest would be my guess |
@ricardoV94 Great news! Looking forward to it! (Aside: I saw the recent |
@metrizable will try to update the PyTensor dependency on PyMC tomorrow, although sometimes the conda side (which we use for testing) has some hiccups. Is next week a reasonable timeline for you guys? |
@ricardoV94 Yes, sounds great! I saw the update was published to PyPI. Nice! |
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
When importing pymc with
import pymc as pm
I get the error message:AttributeError:
np.obj2sctypewas removed in the NumPy 2.0 release. Use
np.dtype(obj).typeinstead.
(see full error message below).
I think the message is pretty clear, pymc does not support Numpy 2.0 at the moment.
Do we have any plans to support it?
Reproduceable code example:
Error message:
PyMC version information:
pip install pymc
versions:
pymc-5.15.0
numpy-2.1.3
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: