ss-d3v / BotTuber

Fully Automated YouTube Channel ▶️with Added Extra Features (Automated Title, Description, Tags, Watermark and much more)
https://youtube.com/c/pwnOS
MIT License
367 stars 79 forks source link

Error after scrape #4

Closed Mac0r0ni closed 2 years ago

Mac0r0ni commented 2 years ago

Hello, and thanks for your time making this. I'm having an issue. After its done scraping, i get the following error.

Traceback (most recent call last): File "C:\DefenderExclude\YOUTUBECHANNLE\BotTuber\bottuber.py", line 326, in <module> attemptRoutine() File "C:\DefenderExclude\YOUTUBECHANNLE\BotTuber\bottuber.py", line 317, in attemptRoutine routine(title, description, tags) File "C:\DefenderExclude\YOUTUBECHANNLE\BotTuber\bottuber.py", line 180, in routine dfile.write(description) File "C:\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 446-450: character maps to <undefined>

Desktop (please complete the following information):

Any idea?

sam5epi0l commented 2 years ago

Reason: charmap supports utf-8 encoding only. description variable contains an emoji.

The bug is resolved you can git clone to get latest version of BotTuber.(Not released as a package yet) or you can just change description(remove emojis).