[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mCaller - Unicode error - anybody who has encountered this before/having an instant idea?



On Fri, 04 Sep 2020, Steffen Möller wrote:

>  File "./mCaller.py", line 59, in distribute_threads
>    extract_features(tsvname,refname,read2qual,nvariables,skip_thresh,qual_thresh,modelfile,classifier,0,endline=bytesize,train=train,pos_label=training_pos_dict,base=base,motif=motif,positions_list=positions_list)

>  File
> "/home/moeller/git/med-team/mcaller/mcaller-0.0/extract_contexts.py",
> line 123, in extract_features
>    model = pickle.load(modfi)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 1:
> ordinal not in range(128)

I guess pickle produced with python2 ... have a look around e.g.
https://rebeccabilbro.github.io/convert-py2-pickles-to-py3/

-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
WWW:   http://www.linkedin.com/in/yarik        


Reply to: