AlphaZero_Gomoku icon indicating copy to clipboard operation
AlphaZero_Gomoku copied to clipboard

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

Open Go-Tak opened this issue 5 years ago • 1 comments

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'

Go-Tak avatar May 25 '19 09:05 Go-Tak

Do you solve the problem?

Jmila-xy avatar May 26 '20 16:05 Jmila-xy