Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError #3

Open
liuedfie234 opened this issue Apr 30, 2019 · 3 comments
Open

UnicodeDecodeError #3

liuedfie234 opened this issue Apr 30, 2019 · 3 comments

Comments

@liuedfie234
Copy link

liuedfie234 commented Apr 30, 2019

Hi,
I got this problem

python compress.py out.lzf 2244 out.npz

Traceback (most recent call last):
File "compress.py", line 47, in
main(sys.argv[1:])
File "compress.py", line 39, in main
data = decompress(features_path, 'd', 8, feature_len)
File "compress.py", line 22, in decompress
byte_array = f.read()
File "/home/yzl/anaconda3/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 3: invalid continuation byte

how could I do?
thanks !

@liuedfie234 liuedfie234 changed the title Issue importing lzf UnicodeDecodeError Apr 30, 2019
@JoyMazumder
Copy link

Getting the same error. Any Solution?

@qsisi
Copy link

qsisi commented Feb 20, 2021

same error! waiting for solutions!

@qsisi
Copy link

qsisi commented Feb 27, 2021

Hi,
I got this problem

python compress.py out.lzf 2244 out.npz

Traceback (most recent call last):
File "compress.py", line 47, in
main(sys.argv[1:])
File "compress.py", line 39, in main
data = decompress(features_path, 'd', 8, feature_len)
File "compress.py", line 22, in decompress
byte_array = f.read()
File "/home/yzl/anaconda3/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 3: invalid continuation byte

how could I do?
thanks !

It looks like the error comes from the python3.x , in my ubuntu16.04 the default python version is 2.7, and I can run compress.py without error, maybe you can try creating a new environment with python2.7 and run again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants