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

UnicodeEncodeError: 'charmap' codec can't encode characters in position 135-140: character maps to <undefined> #952

Open
Root-FTW opened this issue Mar 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Root-FTW
Copy link

[2024-03-16 00:08:33,567 - bdfr.downloader - INFO] - Downloaded submission vsas80 from FortniteXPFarm
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\rootf\anaconda3\Lib\logging_init_.py", line 1113, in emit
stream.write(msg + self.terminator)
File "C:\Users\rootf\anaconda3\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 135-140: character maps to
Call stack:
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\rootf\anaconda3\Scripts\bdfr.exe_main
.py", line 7, in
sys.exit(cli())
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr_main
.py", line 118, in cli_download
reddit_downloader.download()
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 50, in download
self._download_submission(submission)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 99, in download_submission
logger.debug(f"Using {downloader_class.name} with url {submission.url}")
Message: 'Using SelfPost with url https://www.reddit.com/r/party_fortnite/comments/110d74f/بهترین_کویر/'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\rootf\anaconda3\Lib\logging_init
.py", line 1113, in emit
stream.write(msg + self.terminator)
File "C:\Users\rootf\anaconda3\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 157-162: character maps to
Call stack:
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\rootf\anaconda3\Scripts\bdfr.exe_main
.py", line 7, in
sys.exit(cli())
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr_main
.py", line 118, in cli_download
reddit_downloader.download()
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 50, in download
self._download_submission(submission)
File "C:\Users\rootf\anaconda3\Lib\site-packages\bdfr\downloader.py", line 116, in _download_submission
logger.debug(f"Download filter removed {submission.id} file with URL {submission.url}")
Message: 'Download filter removed 110d74f file with URL https://www.reddit.com/r/party_fortnite/comments/110d74f/بهترین_کویر/'
Arguments: ()
[2024-03-16 00:08:33,933 - bdfr.downloader - INFO] - Downloaded submission 110d74f from party_fortnite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant