-
Notifications
You must be signed in to change notification settings - Fork 2.5k
UnicodeDecodeError accured! #265
Comments
This is a bug in PyTorch. Please copy and paste the output from the You can get the script and run it with:
|
@fmassa Thanks for your reply. I copy and paste but it still doesn't work. I used pytorch1.0 stable.maybe I should use the nightly one? |
@fmassa |
the error still exist |
/home/liulinzhi/anaconda3/envs/maskrcnn_benchmark/bin/python /home/liulinzhi/anaconda3/envs/maskrcnn_benchmark/lib/python3.6/site-packages/torch/utils/collect_env.py Process finished with exit code 1 |
I solve it by using “utf-8”.... |
@LDoubleZhi can you be a bit more precise on what you changed? |
@fmassa I modify the collect_env.py |
Thanks for the explanation. I've opened an issue in pytorch/pytorch#15214 so that it can be fixed. |
When I modify to utf-8, the following problems occurred: |
@Swjtu-only I suffered from same problem. I caught to error using Swjtu-only's solution. Thanks. |
❓ 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)
The text was updated successfully, but these errors were encountered: