ekzhu / datasketch

MinHash, LSH, LSH Forest, Weighted MinHash, HyperLogLog, HyperLogLog++, LSH Ensemble and HNSW
https://ekzhu.github.io/datasketch
MIT License
2.59k stars 295 forks source link

TypeError: randint() got an unexpected keyword argument 'dtype' #27

Closed c625473164 closed 7 years ago

c625473164 commented 7 years ago

Error happened when I just copied the example from the office site. https://ekzhu.github.io/datasketch/documentation.html#minhash

traceback: Traceback (most recent call last): File "/Users/caijianyu/sites/scouter/script/proj/minhash.py", line 10, in m1 = MinHash(numperm=128) File "/Library/Python/2.7/site-packages/datasketch/minhash.py", line 82, in init for in range(num_perm)], dtype=np.uint64).T File "mtrand.pyx", line 812, in mtrand.RandomState.randint (numpy/random/mtrand/mtrand.c:6557) TypeError: randint() got an unexpected keyword argument 'dtype'

c625473164 commented 7 years ago

I have updated my python2.7 to python3 and this problem disappears