Closed mohamedmehdigara closed 2 years ago
Hi!
Did you wrote a command uvicorn rtm_app:app
in the schat
folder?
I just tried it right now - and all seems good so far.
Also, I forget to mention about chat page, it is - http://127.0.0.1:8000/chat
by default, I will update README.
Hi! Yes and this is what I get:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64qbz5n2kfra8p0\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts\uvicorn.exe\main__.py", line 7, in
raise exc from None
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64qbz5n2kfra8p0\lib\importlib__init__.py", line
127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
File "
I am using Python2
Are you sure about Python2? Because I can clearly see Python3.9 in error lines, i.e. you are using Python3.
The main issue here - you need to setup your python environment (install libs) with pip install -r requirements.txt
in the main folder of this project.
More info about python env, I think you can find in the Internet.
Also, I update README, so you can read it again, if you had some questions before.
ERROR: Error loading ASGI app. Could not import module "rtm_app".