Hello, currently I am building a multipage App with dcc.Store components. My problem is that when I start the App I receive the following errormessage:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\microsoft\python\core\debugpy\__main__.py", line 39, in <module>
cli.main()
File "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 430, in main
run()
File "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 284, in run_file
runpy.run_path(target, run_name="__main__")
File "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\microsoft\python\core\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
File "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\microsoft\python\core\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\microsoft\python\core\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "C:\Users\User\Desktop\Business\Stonks\Stonks\Stonks.py", line 8, in <module>
app = Dash(__name__, use_pages=True, external_stylesheets=[dbc.themes.CYBORG])
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\dash\dash.py", line 504, in __init__
self.init_app()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\dash\dash.py", line 588, in init_app
self.enable_pages()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\dash\dash.py", line 2041, in enable_pages
self._import_layouts_from_pages()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\dash\dash.py", line 2005, in _import_layouts_from_pages
content = f.read()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 6218: invalid start byte
Funny thing is the App worked and then suddenly after doing small changes it stopped working. Can anybody help me out?
Press any key to continue . . .