Re: [Tutor] [Python 3.5] TypeError: a bytes-like object is required, not 'str' PICKLE

2017-04-07 Thread Alan Gauld via Tutor
Please always send the full error trace not just the last line. The message is full of useful details which we can't currently see. On 07/04/17 09:28, Allan Tanaka via Tutor wrote: > Hi > I have added b so that it translates into bytes object. save_cPickle part is > not problem... > But i

Re: [Tutor] [Python 3.5] TypeError: a bytes-like object is required, not 'str' PICKLE

2017-04-07 Thread Peter Otten
Allan Tanaka via Tutor wrote: > Hi > I have added b so that it translates into bytes object. save_cPickle part > is not problem... But i still get an error when coming into load_cPickle > for this function: Dataset.save_part_features('categorical_counts', >

[Tutor] [Python 3.5] TypeError: a bytes-like object is required, not 'str' PICKLE

2017-04-07 Thread Allan Tanaka via Tutor
Hi I have added b so that it translates into bytes object. save_cPickle part is not problem... But i still get an error when coming into load_cPickle for this function: Dataset.save_part_features('categorical_counts', Dataset.get_part_features('categorical')) although i have defined b in