partially initialized module 'asyncio' has no attribute 'get_running_loop'
I am facing the error, when load the project first time.
Here is the stack trace:
`C:\Users\daniyal.hassan\AppData\Local\pypoetry\Cache\virtualenvs\basic-app-30r8rR07-py3.10\Scripts\python.exe D:\NewPC\Playground\python\FastAPI\basic_app\basic_app
Traceback (most recent call last):
File "C:\Users\daniyal.hassan\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\daniyal.hassan\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "D:\NewPC\Playground\python\FastAPI\basic_app\basic_app_main.py", line 1, in
Process finished with exit code 1 `
and here is generated pyproject.toml file:
`[tool.poetry] name = "basic_app" version = "0.1.0" description = "" authors = [
] maintainers = [
] readme = "README.md"
[tool.poetry.dependencies] python = "^3.9" fastapi = "^0.100.0" uvicorn = { version = "^0.22.0", extras = ["standard"] } fastapi-users = "^12.1.2" httpx-oauth = "^0.10.2" fastapi-users-db-sqlalchemy = "^6.0.1" pydantic = "^2" pydantic-settings = "^2" yarl = "^1.9.2" ujson = "^5.8.0" SQLAlchemy = {version = "^2.0.18", extras = ["asyncio"]} aiosqlite = "^0.19.0" httptools = "^0.6.0" loguru = "^0.7.0"
[tool.poetry.dev-dependencies] pytest = "^7.2.1" flake8 = "~4.0.1" mypy = "^1.1.1" isort = "^5.11.4" pre-commit = "^3.0.1" wemake-python-styleguide = "^0.17.0" black = "^22.12.0" autoflake = "^1.6.1" pytest-cov = "^4.0.0" anyio = "^3.6.2" pytest-env = "^0.8.1" httpx = "^0.23.3"
[tool.isort] profile = "black" multi_line_output = 3 src_paths = ["basic_app",]
[tool.mypy] strict = true ignore_missing_imports = true allow_subclassing_any = true allow_untyped_calls = true pretty = true show_error_codes = true implicit_reexport = true allow_untyped_decorators = true warn_unused_ignores = false warn_return_any = false namespace_packages = true
[tool.pytest.ini_options] filterwarnings = [ "error", "ignore::DeprecationWarning", "ignore:.unclosed.:ResourceWarning", ] env = [ "BASIC_APP_ENVIRONMENT=pytest", "BASIC_APP_DB_FILE=test_db.sqlite3", ]
[fastapi-template.options] project_name = "basic_app" api_type = "rest" enable_redis = "None" enable_rmq = "None" ci_type = "github" enable_migrations = "None" enable_taskiq = "None" enable_kube = "True" kube_name = "basic-app" enable_routers = "True" enable_kafka = "None" enable_loguru = "True" traefik_labels = "None" add_dummy = "True" orm = "sqlalchemy" self_hosted_swagger = "None" prometheus_enabled = "None" sentry_enabled = "None" otlp_enabled = "None" pydanticv1 = "None" gunicorn = "None" add_users = "True" cookie_auth = "None" jwt_auth = "True"
[build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" `