junxiaosong / AlphaZero_Gomoku

An implementation of the AlphaZero algorithm for Gomoku (also called Gobang or Five in a Row)
MIT License
3.33k stars 970 forks source link

ORENIST.data ModuleNotFoundError: No module named 'numpy.core.multiarray\r' #90

Open Go-Tak opened 5 years ago

Go-Tak commented 5 years ago

When I unpickle ORENIST.data downloaded by command as 'git clone https://github.com/enakai00/jupyter_tfbook' using the following command.

"f=open('../common/ORENIST.data','rb') images,labels=cPickle.load(f)"

I have the following error. "ModuleNotFoundError: No module named 'numpy.core.multiarray\r'"

I thought that Python couldn`t find 'numpy.core.multiarray\r'. Then I open ORENIST.data using binary editor and replace X'0D0A'(..) with X'5C72'(\r). Then I had an error following. "_pickle.UnpicklingError: pickle data was truncated" Next I removed X'0D0A' and got the same message above.

This means that ORENIST.data is corrupted. Although I can`t find any issues similar as this in GitHub. The following is part of heading data "((lp0\rcnumpy.core.multiarray\r_reconstruct\rp1\r(cnumpy\rndarray\rp2\r(I0\rtp3\rS'b'\rp4\rtp5\rRp6\r(I1\r(I784\rtp7\rcnumpy\rdtype\rp8\r(S'f8'\rp9\rI0\rI1\rtp10\rRp11\r(I3\rS'<'\rp12\rNNNI-1\rI-1\rI0\rtp13\rbI00\rS'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\" How other people solve this problem?

My python:Python 3.6.6 :: Anaconda, Inc. 'cPickle' is defined as 'import _pickle as cPickle'

Jmila-xy commented 4 years ago

Do you solve the problem?