screenshot-to-code
screenshot-to-code copied to clipboard
Poetry run error
(backend-py3.11) PS C:\Users\HP 1030 G2\Desktop\scrrn\backend> poetry run uvicorn main:app --reload --port 7001
INFO: Will watch for changes in these directories: ['C:\Users\HP 1030 G2\Desktop\scrrn\backend']
INFO: Uvicorn running on http://127.0.0.1:7001 (Press CTRL+C to quit)
INFO: Started reloader process [1872] using StatReload
Process SpawnProcess-1:
Traceback (most recent call last):
File "C:\Python311\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Python311\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\HP 1030 G2\AppData\Local\pypoetry\Cache\virtualenvs\backend-fKIMLrWx-py3.11\Lib\site-packages\uvicorn_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "C:\Users\HP 1030 G2\AppData\Local\pypoetry\Cache\virtualenvs\backend-fKIMLrWx-py3.11\Lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\runners.py", line 118, in run
return self.loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\HP 1030 G2\AppData\Local\pypoetry\Cache\virtualenvs\backend-fKIMLrWx-py3.11\Lib\site-packages\uvicorn\server.py", line 68, in serve
config.load()
File "C:\Users\HP 1030 G2\AppData\Local\pypoetry\Cache\virtualenvs\backend-fKIMLrWx-py3.11\Lib\site-packages\uvicorn\config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP 1030 G2\AppData\Local\pypoetry\Cache\virtualenvs\backend-fKIMLrWx-py3.11\Lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
Same error here, still couldnt find a solution
See https://github.com/abi/screenshot-to-code?tab=readme-ov-file#%EF%B8%8F-faqs "Seeing UTF-8 errors when running the backend?"