Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Error after scrape #4

Closed
Mac0r0ni opened this issue Jan 26, 2022 · 1 comment
Closed

Error after scrape #4

Mac0r0ni opened this issue Jan 26, 2022 · 1 comment

Comments

@Mac0r0ni
Copy link

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):

  • OS: Windows 10
  • Browser Brave

Any idea?

@sam5epi0l
Copy link
Collaborator

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants