Skip to content

UnicodeEncodeError: 'charmap' codec can't encode characters in position 5-8: character maps to <undefined> #4

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

Open
scripthon opened this issue Aug 6, 2022 · 4 comments

Comments

@scripthon
Copy link

how to fix it bro

$ python mega.py

Traceback (most recent call last):
File "C:\Users\AbygaileJhonson\mega\mega.py", line 47, in
print(banner)
File "C:\Users\AbygaileJhonson\AppData\Local\Programs\Python\Python310\lib\site-packages\colorama\ansitowin32.py", line 47, in write
self.__convertor.write(text)
File "C:\Users\AbygaileJhonson\AppData\Local\Programs\Python\Python310\lib\site-packages\colorama\ansitowin32.py", line 170, in write
self.write_and_convert(text)
File "C:\Users\AbygaileJhonson\AppData\Local\Programs\Python\Python310\lib\site-packages\colorama\ansitowin32.py", line 195, in write_and_convert
self.write_plain_text(text, cursor, start)
File "C:\Users\AbygaileJhonson\AppData\Local\Programs\Python\Python310\lib\site-packages\colorama\ansitowin32.py", line 203, in write_plain_text
self.wrapped.write(text[start:end])
File "C:\Users\AbygaileJhonson\AppData\Local\Programs\Python\Python310\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 5-8: character maps to

@defaltastra
Copy link
Contributor

try running export PYTHONIOENCODING=utf8 in your terminal then running the script again

@scripthon
Copy link
Author

try running export PYTHONIOENCODING=utf8 in your terminal then running the script again

[Error] An error occured while Creating a Account Reasons are [Names you have entered in emails.txt is taken]
[EXIT] Press Enter to Exit >[16720:9804:0809/215905.527:ERROR:util.cc(127)] Can't create base directory: C:\Program Files\Google\GoogleUpdater

@defaltastra
Copy link
Contributor

defaltastra commented Aug 9, 2022

you have to go to emails.txt and generate usernames using the link http://generator.my-addr.com/generate_usernames-free_username_generator_online_tool.php then paste them there and try again, also make sure to have google chrome installed

@scripthon
Copy link
Author

you have to go to emails.txt and generate usernames using the link http://generator.my-addr.com/generate_usernames-free_username_generator_online_tool.php then paste them there and try again, also make sure to have google chrome installed

i did it bro, the results are the same, what version of the chrome driver are you use?

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

No branches or pull requests

4 participants
@defaltastra @scripthon and others