screenshot-to-code
screenshot-to-code copied to clipboard
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Process SpawnProcess-1:
Traceback (most recent call last):
File "D:\python\python310\lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "D:\python\python310\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\36121\AppData\Local\pypoetry\Cache\virtualenvs\backend-I4rE4aR--py3.10\lib\site-packages\uvicorn_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "C:\Users\36121\AppData\Local\pypoetry\Cache\virtualenvs\backend-I4rE4aR--py3.10\lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "D:\python\python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "D:\python\python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\36121\AppData\Local\pypoetry\Cache\virtualenvs\backend-I4rE4aR--py3.10\lib\site-packages\uvicorn\server.py", line 68, in serve
config.load()
File "C:\Users\36121\AppData\Local\pypoetry\Cache\virtualenvs\backend-I4rE4aR--py3.10\lib\site-packages\uvicorn\config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
File "C:\Users\36121\AppData\Local\pypoetry\Cache\virtualenvs\backend-I4rE4aR--py3.10\lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "D:\python\python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
Change the encoding of your env file to utf-8
Change the encoding of your env file to utf-8
Can you guide me on where to make this change?
UPDATE: I used Notepad++ to do it, and now it works!
As a sidenote to anybody who experiences this issue and does not have Notepad++ installed. You can also open the file in the regular Notepad and click "File" -> "Save As". You will have the the option to change the encoding at the bottom to UTF-8. This has solved the issue above for me.
Edit: typo
Thanks for the fix. Included in the README now.