ACCLAB / DABEST-python

Data Analysis with Bootstrapped ESTimation
https://acclab.github.io/DABEST-python/
Apache License 2.0
341 stars 47 forks source link

PCG64 import error #101

Closed GergelyTuri closed 4 years ago

GergelyTuri commented 4 years ago

Hi, I'm working on the tutorial and I get the following error when I try to do two_groups_unpaired.mean_diff :

from numpy.random import PCG64, RandomState
# rng = RandomState(default_rng(random_seed))

ImportError: cannot import name 'PCG64'

I'm on Windows 10, using the python version (0.3.0), numpy = 1.15.1, pandas=0.25.3

best,

josesho commented 4 years ago

Hi,

Sorry about this! The minimal version of numpy should be 1.17, not 1.15. I will update setup.py to fix this; in the meantime, you should run

pip install --upgrade numpy

or

conda install -c conda-forge numpy>=1.17

Let me know if this fixes it!

Joses

mooreniemi commented 4 years ago

I experienced this issue as well and found upgrading to 1.18 fixed it.

GergelyTuri commented 4 years ago

Thanks, it was the numpy version indeed. It works fine with numpy==1.18.4.