-
-
Notifications
You must be signed in to change notification settings - Fork 752
TypeError on import TypeError: data type "float128" not understood #90
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
Hi, |
Hi |
Oh damn! It's a windows bug. Numpy under windows doesn't have a |
These OS bugs keep coming 🤦 It's indeed related to your latest PR @lucianopaz. |
I'm getting this on MacOS (M1 hardware) using miniforge. This is with NumPy 1.21.0. ImportError while loading conftest '/Users/cfonnesbeck/GitHub/pymc3/pymc3/tests/conftest.py'.
pymc3/__init__.py:82: in <module>
from pymc3 import gp, ode, sampling
pymc3/gp/__init__.py:16: in <module>
from pymc3.gp.gp import TP, Latent, LatentKron, Marginal, MarginalKron, MarginalSparse
pymc3/gp/gp.py:25: in <module>
from pymc3.distributions import draw_values
pymc3/distributions/__init__.py:15: in <module>
from pymc3.distributions import shape_utils, timeseries, transforms
pymc3/distributions/timeseries.py:21: in <module>
from pymc3.distributions import distribution, multivariate
pymc3/distributions/multivariate.py:35: in <module>
from pymc3.distributions.continuous import ChiSquared, Normal
pymc3/distributions/continuous.py:30: in <module>
from pymc3.distributions.dist_math import (
pymc3/distributions/dist_math.py:49: in <module>
np.nextafter(0, 1, dtype="float128"),
E TypeError: data type 'float128' not understood |
For reference, on macOS ARM64 (Apple Silicon M1), float128 is not supported on numpy (at least when installed from conda-forge): >>> import numpy as np
>>> np.dtype("float128")
Traceback (most recent call last):
File "<ipython-input-5-10c53c28af62>", line 1, in <module>
np.dtype("float128")
TypeError: data type 'float128' not understood So it would be great to make float128 support an optional requirement for PyMC3 and pymc. |
Which version are you using? If I recall correctly our next release dos not use float128 anywhere, so it should not be a problem. |
I'm seeing this also. The most recent release of pymc3 that's available through conda on m1 is 3.9.3, because the versions of theano-pymc required for later versions of pymc3 aren't available for m1. At least that's what conda is telling me. I was able to workaround this by downgrading pymc3 to 3.8. Edit: theano-pymc and therefore pymc3 3.11.4 are now available on conda for m1, so I think this issue is resolved. |
On Windows, Anaconda 4.8.3. Created conda environment with
conda env create -f environment.yml
inside Rethinking_2 directory.Doing
import pymc3
gives the following errorThe text was updated successfully, but these errors were encountered: