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

TypeError: data type "float128" not understood #3929

Closed
karnn opened this issue May 19, 2020 · 1 comment · Fixed by #3930
Closed

TypeError: data type "float128" not understood #3929

karnn opened this issue May 19, 2020 · 1 comment · Fixed by #3930
Assignees
Labels
winOS windows OS related

Comments

@karnn
Copy link

karnn commented May 19, 2020

If you have questions about a specific use case, or you are not sure whether this is a bug or not, please post it to our discourse channel: https://discourse.pymc.io

Import pymc3 fails on windows and anaconda with TypeError numpy.float128 datatype not recognised

Python 3.8.2 numpy 1.18.4

import pymc3

Error log:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-75554ce6e5eb> in <module>
      2 import matplotlib.pyplot as plt
      3 import numpy as np
----> 4 import pymc3 as pm
      5 import scipy.stats as stats

~\Miniconda3\envs\stat-rethink2-pymc3\lib\site-packages\pymc3\__init__.py in <module>
     49 
     50 from .blocking import *
---> 51 from .distributions import *
     52 from .distributions import transforms
     53 from .glm import *

~\Miniconda3\envs\stat-rethink2-pymc3\lib\site-packages\pymc3\distributions\__init__.py in <module>
     13 #   limitations under the License.
     14 
---> 15 from . import timeseries
     16 from . import transforms
     17 from . import shape_utils

~\Miniconda3\envs\stat-rethink2-pymc3\lib\site-packages\pymc3\distributions\timeseries.py in <module>
     20 
     21 from pymc3.util import get_variable_name
---> 22 from .continuous import get_tau_sigma, Normal, Flat
     23 from .shape_utils import to_tuple
     24 from . import multivariate

~\Miniconda3\envs\stat-rethink2-pymc3\lib\site-packages\pymc3\distributions\continuous.py in <module>
     30 from .special import log_i0
     31 from ..math import invlogit, logit, logdiffexp
---> 32 from .dist_math import (
     33     alltrue_elemwise, betaln, bound, gammaln, i0e, incomplete_beta, logpow,
     34     normal_lccdf, normal_lcdf, SplineWrapper, std_cdf, zvalue,

~\Miniconda3\envs\stat-rethink2-pymc3\lib\site-packages\pymc3\distributions\dist_math.py in <module>
     35 f = floatX
     36 c = - .5 * np.log(2. * np.pi)
---> 37 _beta_clip_values = {
     38     dtype: (np.nextafter(0, 1, dtype=dtype), np.nextafter(1, 0, dtype=dtype))
     39     for dtype in ["float16", "float32", "float64", "float128"]

~\Miniconda3\envs\stat-rethink2-pymc3\lib\site-packages\pymc3\distributions\dist_math.py in <dictcomp>(.0)
     36 c = - .5 * np.log(2. * np.pi)
     37 _beta_clip_values = {
---> 38     dtype: (np.nextafter(0, 1, dtype=dtype), np.nextafter(1, 0, dtype=dtype))
     39     for dtype in ["float16", "float32", "float64", "float128"]
     40 }

TypeError: data type "float128" not understood

Please provide any additional information below.

Versions and main components

  • PyMC3 Version: 3.8
  • Theano Version:1.0.4
  • Python Version:3.8.2
  • Operating system: windows 10
  • How did you install PyMC3: (conda/pip) conda
@lucianopaz lucianopaz self-assigned this May 19, 2020
@lucianopaz lucianopaz added the winOS windows OS related label May 19, 2020
@lucianopaz
Copy link
Contributor

Original issue was posted on pymc resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
winOS windows OS related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants