pickling error in python?

前端 未结 5 673
情歌与酒
情歌与酒 2021-01-07 21:20

I am getting this error, and I dont know what it means. How can I fix this problem?

my code looks like this, I\'ve used it before and it has worked:



        
5条回答
  •  不思量自难忘°
    2021-01-07 21:49

    I had a similar problem, resulting in KeyError: '\x1f'.

    In my case, if was pickled to a gzip file (ie: gzip.open(fileName,'wb')), and I was trying to read it with a normal file object (ie: open(fileName,'rb')).

提交回复
热议问题