gino-starlette icon indicating copy to clipboard operation
gino-starlette copied to clipboard

Failing to run with Alembic with FastAPI

Open nf1s opened this issue 5 years ago • 4 comments

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

  1. clone https://github.com/ahmednafies/fastapi_gino.git
  2. 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

nf1s avatar Jul 17 '20 08:07 nf1s

@fantix: what do you think?

nf1s avatar Jul 20 '20 07:07 nf1s

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

fantix avatar Sep 07 '20 21:09 fantix

Still I have the same error.

nf1s avatar Sep 14 '20 07:09 nf1s

Well this is stale. But I haven't been able to reproduce either, with the newest versions.

Chaostheorie avatar Oct 11 '21 16:10 Chaostheorie