python - when does bz2.decompress(rawdata) got an error of "couldn't find end of stream"? -
i have checked file in disk same https://github.com/scipy/scipy/blob/master/scipy/misc/face.dat
but when run statement ,i have got error. why ?
scipy.misc.face() traceback (most recent call last): file "<stdin>", line 1, in <module> file "c:\python27\lib\site-packages\scipy\misc\common.py", line 567, in face data = bz2.decompress(rawdata) valueerror: couldn't find end of stream
it's bug (on windows), see here
https://github.com/scipy/scipy/commit/7f0210fd28a2b3be79806d5cae462be52c1601e9
Comments
Post a Comment