-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Jax sampling type-hints incompatible with Python 3.9 #6941
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
|
Having the same error here. All |
Right, it looks like numpyro uses union types, introduced in Python 3.10. The easiest solution would be to install a previous version of numpyro. A harder solution would be to use a more recent version of Python. Note that the scientific python spec suggests dropping support for Python 3.9 tomorrow! |
Wow already?! Life comes at you fast... |
PyMC is still supporting Python 3.9 so we should revert those type-hints changes. CC @ferrine |
Hi @ricardoV94! I'm still getting this error. I see that the PR made the |
@aarojas20 thanks for reporting back |
We should run pre-commit on the oldest supported version on python to avoid issues like this in the future |
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
Latest release of pymc (5.9.0) seems incompatible with a numpyro powered fit.
I'm using pymc via the package bambi, a simple wrapper to build Bayesian linear regression.
Downgrading pymc to 5.7.2 made the code sample work.
Reproduceable code example:
Error message:
PyMC version information:
pymc=5.9.0
bambi=0.12.0
numpyro=0.13.0
jax=0.4.14
jaxlib=0.4.14
pytensor=2.17.1
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: