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

You may need to add PYTHONIOENCODING=utf-8 to your environment #1

Closed
TheNopePlant opened this issue Apr 11, 2021 · 2 comments
Closed
Labels
wontfix This will not be worked on

Comments

@TheNopePlant
Copy link

TheNopePlant commented Apr 11, 2021

Received after agreeing yes to all the channels that i want to download

Traceback (most recent call last):
File "main.py", line 83, in <module>
c.print('All done! \U0001f389')
File "/home/pi/.local/lib/python3.7/site-packages/rich/console.py", line 1506, in print
self._buffer.extend(new_segments)
File "/home/pi/.local/lib/python3.7/site-packages/rich/console.py", line 776, in __exit__
self._exit_buffer()
File "/home/pi/.local/lib/python3.7/site-packages/rich/console.py", line 735, in _exit_buffer
self._check_buffer()
File "/home/pi/.local/lib/python3.7/site-packages/rich/console.py", line 1697, in _check_buffer
self.file.write(text)
UnicodeEncodeError: 'latin-1' codec can't encode character '\U0001f389' in position 10: ordinal not in range(256)
*** You may need to add PYTHONIOENCODING=utf-8 to your environment ***

@TheNopePlant
Copy link
Author

Fixed by changing line 83 from
c.print('All done! 🎉')

to
c.print('All done!')

@anatolykopyl
Copy link
Owner

Thanks for the report! Though I don't plan on removing Unicode since it's recommended that you have it enabled by default.

@anatolykopyl anatolykopyl added the wontfix This will not be worked on label Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants