Good day, I have a problem when initializing the python shell in the Windows cmd, less than a day ago it worked perfectly, but suddenly, when I wanted to start the Python shell inside the Windows cmd with the command "python" ", it shows me the following:
C:\Users\nombreusuario>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "C:\Users\nombreusuario\AppData\Local\Programs\Python\Python35\lib\site.py", line 419, in register_readline
readline.read_history_file(history)
File "C:\Users\nombreusuario\AppData\Local\Programs\Python\Python35\lib\site-packages\pyreadline\rlmain.py", line 165, in read_history_file
self.mode._history.read_history_file(filename)
File "C:\Users\nombreusuario\AppData\Local\Programs\Python\Python35\lib\site-packages\pyreadline\lineeditor\history.py", line 82, in read_history_file
for line in open(filename, 'r'):
File "C:\Users\nombreusuario\AppData\Local\Programs\Python\Python35\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1932: character maps to <undefined>
>>>
And as you can see, in the end I can use the Python shell, but it is obvious that there is a bug, do you know how I can solve it?