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

Progress bar encoding error - Windows #790

Closed
aornugent opened this issue Nov 2, 2017 · 4 comments
Closed

Progress bar encoding error - Windows #790

aornugent opened this issue Nov 2, 2017 · 4 comments

Comments

@aornugent
Copy link

Total edge case, but this:

bar += ('█' * prog_width)

causes edward to crash on my system:

UnicodeEncodeError: 'charmap' codec can't encode character '\u2588' in position 17: character maps to <undefined>

Switching to any other character resolves the issue.

@dustinvtran
Copy link
Member

dustinvtran commented Nov 3, 2017

Does a simple try/except, whose except block swaps the character with a more compatible character work? Seems like an easy fix.

@theSage21
Copy link

@aornugent could you specify a character that works?

@aornugent
Copy link
Author

aornugent commented Dec 11, 2017 via email

@dustinvtran
Copy link
Member

#692. This fix is still up for grabs if anyone's interested. Should be a 3-5 line addition for the try/except block.

abs51295 added a commit to abs51295/edward that referenced this issue Feb 7, 2018
dustinvtran pushed a commit that referenced this issue Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants