alembic 1.8.1 can't create initial migration on MacOS due to missing folder #1068
-
Describe the bug Expected behavior To Reproduce alembic init alembic
alembic revision --autogenerate -m "Initial migration" Error
Versions.
Have a nice day! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
hi - there's likely some change you've made in your alembic.ini or env.py that's affecting things. since it can't find 'versions', likely something with "script_location" or "version_locations". try using a fresh start, dont edit any files whatsoever. then make sure "alembic revision -m 'some rev'" creates a file. here's what it looks like:
then run alembic from that same directory and make sure script_location points to "alembic". |
Beta Was this translation helpful? Give feedback.
-
This is why I like using mature software. Congratz, great lib @zzzeek ! |
Beta Was this translation helpful? Give feedback.
-
would creating a |
Beta Was this translation helpful? Give feedback.
hi -
there's likely some change you've made in your alembic.ini or env.py that's affecting things. since it can't find 'versions', likely something with "script_location" or "version_locations".
try using a fresh start, dont edit any files whatsoever. then make sure "alembic revision -m 'some rev'" creates a file.
here's what it looks like: