gino-starlette
gino-starlette copied to clipboard
Failing to run with Alembic with FastAPI
Expected Behavior
I am trying to run the alembic make migrations and expected to succeed
Actual Behavior
exception is raised
Steps to Reproduce the Problem
- clone https://github.com/ahmednafies/fastapi_gino.git
- run
make makemigrations
command
`alembic revision --autogenerate`
error
AttributeError: type object 'AsyncpgDBAPI' has no attribute 'connect'
Specifications
- Python version: 3.8.3
- GINO version: 1.0.1
- Starlette version: 0.13.4
@fantix: what do you think?
Did you fix this? I cannot reproduce:
fastapi_gino$ pipenv run alembic revision --autogenerate
Loading .env environment variables…
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.autogenerate.compare] Detected added table 'users'
INFO [alembic.autogenerate.compare] Detected added index 'ix_users_id' on '['id']'
Generating /private/tmp/fastapi_gino/alembic/versions/bed5859fd0ca_.py ... done
fastapi_gino$ pipenv run make migrate
Loading .env environment variables…
alembic upgrade head
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> bed5859fd0ca, empty message
Still I have the same error.
Well this is stale. But I haven't been able to reproduce either, with the newest versions.