Python Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128)
Mostrar comentarios más antiguos
fid=py.open("set1.pkl",'rb');
data=py.pickle.load(fid);
data=cell(data)
1 comentario
Yun Guan
el 10 de Nov. de 2021
hello,have you solved the problem. and I had the same problem about the Unicode decode error in matlab. thanks
Respuestas (1)
Yongjian Feng
el 17 de Ag. de 2021
0 votos
As you noticed, this is a python error. Try first using python directly to read, without using matlab.
3 comentarios
Yun Guan
el 9 de Nov. de 2021
fid = py.open([ddir,fnames{iFile}],'rb');
greedy{iFile} = py.pickle.load(fid);
hello, I used the code to read my pckl data ,however, it error in the secode code.
Python error ModuleNotFoundError: No module named 'numpy'
and python can work normally in first code.
have you some ideas? thanks
Yongjian Feng
el 9 de Nov. de 2021
Editada: Yongjian Feng
el 9 de Nov. de 2021
Yun Guan
el 10 de Nov. de 2021
Thank you so much!! I got it!
Categorías
Más información sobre Call Python from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!