UnicodeDecodeError accured!
See original GitHub issue❓ Questions and Help
When I train fasterrcnn, error accured blow:
/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/utils/collect_env.py", line 44, in run
err = err.decode(“ascii”)
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe6 in position 22: ordinal not in range(128)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top Results From Across the Web
error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff ...
Python tries to convert a byte-array (a bytes which it assumes to be a utf-8-encoded string) to a unicode string ( str )....
Read more >How to resolve a UnicodeDecodeError for a CSV file - Kaggle
How to resolve a UnicodeDecodeError for a CSV file ... the above exception, another exception occurred: UnicodeDecodeError Traceback (most recent call last) ...
Read more >Built-in Exceptions — Python 3.11.1 documentation
Raised when a Unicode-related error occurs during encoding. It is a subclass of UnicodeError . exception UnicodeDecodeError¶. Raised when ...
Read more >UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d
Traceback (most recent call last): File "Conditional.py", line 108, in module for line in file1: File "cp1252.py", line 23, in decode return ...
Read more >'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
UnicodeDecodeError : 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte solved in Django .The error is on the line ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When I modify to utf-8, the following problems occurred: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb0 in position 25: invalid start byte。 so, i tryed to change to gbk ,it work well.
@fmassa I modify the collect_env.py
def run(command): ........ if PY3: output = output.decode("utf-8") err = err.decode("utf-8") return rc, output.strip(), err.strip()