Open RoyalGoose opened 9 months ago
:thinking: :thinking: :thinking: :thinking:
How could possible asyncio be partially initialized? Can you please give me all parameters you were using from pyproject.toml
? Section called [fastapi-template.options]
.
Do you have a module called asyncio in your codebase?
Or any name that can be the same with some modules from the sandard library?
@s3rius
🤔 🤔 🤔 🤔
How could possible asyncio be partially initialized? Can you please give me all parameters you were using from
pyproject.toml
? Section called[fastapi-template.options]
.
[fastapi-template.options]
project_name = "test_template"
api_type = "rest"
enable_redis = "None"
enable_rmq = "None"
ci_type = "gitlab_ci"
enable_migrations = "True"
enable_taskiq = "True"
enable_kube = "True"
kube_name = "test-template"
enable_routers = "True"
enable_kafka = "True"
enable_loguru = "True"
traefik_labels = "True"
add_dummy = "True"
orm = "ormar"
self_hosted_swagger = "None"
prometheus_enabled = "True"
sentry_enabled = "True"
otlp_enabled = "True"
pydanticv1 = "True"
gunicorn = "None"
add_users = "None"
cookie_auth = "None"
jwt_auth = "None"
Do you have a module called asyncio in your codebase?
Only original asyncio library
Or any name that can be the same with some modules from the sandard library?
No
I have the same for me.
[fastapi-template.options] project_name = "img_store" api_type = "rest" enable_redis = "None" enable_rmq = "None" ci_type = "none" enable_migrations = "True" enable_taskiq = "None" enable_kube = "None" kube_name = "img-store" 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 = "True" add_users = "None" cookie_auth = "None" jwt_auth = "None"
Guess I know the solution for that. Thanks for finding it out.
Guess I know the solution for that. Thanks for finding it out.
And what's the solution? The problem is still present
Fixed it. Just rename logging.py
to _logging.py
or whatever you want it to be
I couldn't find the solution previously. @mxft, that's lit! I'll fix it later.
Fixed it. Just rename
logging.py
to_logging.py
or whatever you want it to be
Rename does work, but could you please explain what's the bug and how did you come up with that solution ?
Rename does work, but could you please explain what's the bug and how did you come up with that solution ?
I didn't dive much into it, but I just though that it has something to do with from logging import ...
mixing up in different places, so I just tried to rename the local module since it has the same name and may interfere in some way. It did the job, as you can see.
@s3rius can we expect the repository to be updated in near future? It pretty much seems abandoned at this point, but fixing major problems and bumping some package versions won't take much of your time
I see, thanks for your reply
After initializing blank project with loguru as logger
poetry run python -m project_name
it gives an error:After renaming file
project_name/logging.py
toproject_name/log.py
it works