Closed mattmcclean closed 5 years ago
I'm guessing this line is to blame. Could you tell me if changing the value of the fill character to some basic char solves the issue?
Bit tricky as this is running in a docker container and hard to modify thefastprogress.py
file. Perhaps encoding it in UTF-8 would work
e.g. replace this line with the following:
bar = self.fill.encode('utf-8') * filled_len + '-' * (self.length - filled_len)
Seems to only happen with Python 3.6. Works fine with Python 3.7
This has been fixed as I set the locale inside the Docker container to the following:
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
Now working fine
This has been fixed as I set the locale inside the Docker container to the following:
ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8
Now working fine
I had the same issue with Python3.6 and putting those ENVs to my container fixed the problem. Thanks!
Was having the same issue in a different docker container I created. Thanks for this fix @mattmcclean !
Am trying to run a training job using fastai in a Docker container (not Jupyter notebook) and getting a
UnicodeEncodeError
in thefastprogress
library. Am runningfastprogress
version 0.1.15,fastai
version 1.0.28 with Python v3.6.Full stack trace includes the following: