Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 330, in find_cookie
line_string = line.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 25: invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "_pydevd_bundle/pydevd_cython.pyx", line 532, in _pydevd_bundle.pydevd_cython.PyDBFrame._handle_exception
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 16, in getline
lines = getlines(filename, module_globals)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 136, in updatecache
with tokenize.open(fullname) as fp:
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 394, in open
encoding, lines = detect_encoding(buffer.readline)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 381, in detect_encoding
encoding = find_cookie(second)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 335, in find_cookie
raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for 'D:\\project\\desktop_jijun\\desktop_jijun\\desktop_jijun.py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 330, in find_cookie
line_string = line.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 25: invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "D:\project\desktop_jijun\desktop_jijun\desktop_jijun.py", line 169, in consaltant
content = response.content.decode('gbk')
File "_pydevd_bundle/pydevd_cython.pyx", line 1366, in _pydevd_bundle.pydevd_cython.SafeCallWrapper.__call__
File "_pydevd_bundle/pydevd_cython.pyx", line 322, in _pydevd_bundle.pydevd_cython.PyDBFrame.trace_exception
File "_pydevd_bundle/pydevd_cython.pyx", line 452, in _pydevd_bundle.pydevd_cython.PyDBFrame.handle_user_exception
File "_pydevd_bundle/pydevd_cython.pyx", line 535, in _pydevd_bundle.pydevd_cython.PyDBFrame._handle_exception
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 16, in getline
lines = getlines(filename, module_globals)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 136, in updatecache
with tokenize.open(fullname) as fp:
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 394, in open
encoding, lines = detect_encoding(buffer.readline)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 381, in detect_encoding
encoding = find_cookie(second)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 335, in find_cookie
raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for 'D:\\project\\desktop_jijun\\desktop_jijun\\desktop_jijun.py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 330, in find_cookie
line_string = line.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 25: invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "d:\vs\benti\common7\ide\extensions\microsoft\python\core\debugpy\__main__.py", line 45, in <module>
cli.main()
File "d:\vs\benti\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 444, in main
run()
File "d:\vs\benti\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 285, in run_file
runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\project\desktop_jijun\desktop_jijun\desktop_jijun.py", line 197, in <module>
root.mainloop()
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1420, in mainloop
self.tk.mainloop(n)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1887, in __call__
self.widget._report_exception()
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1603, in _report_exception
root.report_callback_exception(exc, val, tb)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 2341, in report_callback_exception
traceback.print_exception(exc, val, tb)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 103, in print_exception
for line in TracebackException(
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 509, in __init__
self.stack = StackSummary.extract(
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 366, in extract
f.line
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\traceback.py", line 288, in line
self._line = linecache.getline(self.filename, self.lineno).strip()
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 16, in getline
lines = getlines(filename, module_globals)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\linecache.py", line 136, in updatecache
with tokenize.open(fullname) as fp:
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 394, in open
encoding, lines = detect_encoding(buffer.readline)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 381, in detect_encoding
encoding = find_cookie(second)
File "C:\Users\lry20\AppData\Local\Programs\Python\Python38\lib\tokenize.py", line 335, in find_cookie
raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for 'D:\\project\\desktop_jijun\\desktop_jijun\\desktop_jijun.py'
a
Press any key t