Codec problem with docker?


When I tried to run a tutorial with edward on Docker, I got:

Traceback (most recent call last):            ETA: 72s | Loss: 623.688 
  File "", line 31, in <module>, n_iter=250)
  File "/opt/conda/lib/python3.5/site-packages/edward/inferences/", line 145, in run
  File "/opt/conda/lib/python3.5/site-packages/edward/inferences/", line 183, in print_progress
    self.progbar.update(t, {'Loss': info_dict['loss']})
  File "/opt/conda/lib/python3.5/site-packages/edward/util/", line 85, in update
UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 15: ordinal not in range(128)

Though this change solved it, is this a good solution?
Or, do I misunderstand?

1 Like

Nice catch! A pull request is very welcome.

Thank you for a reply.

I’m glad to create my very first pull request for OSS.

Now I noticed that “Dockerfile-gpu” exists.

Does Dockerfile-gpu need this line too?
I don’t have any GPU environment and can’t confirm it works.

I’ll fix this in the PR

Thank you very much.