You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Describe the bug
After a fresh install on a new project I can't run alembic init because it's missing the 'generic' template. If I try to run list_templates I get an error that the templates directory can't be found.
Alembic initialises the environment.
$ alembic init migrations
FAILED: No such template 'generic'
$ alembic list_templates
Traceback (most recent call last):
File "/usr/local/bin/alembic", line 8, in <module>
File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 559, in main
File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 553, in main
File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 530, in run_cmd
File "/usr/local/lib/python3.9/site-packages/alembic/command.py", line 17, in list_templates
for tempname in os.listdir(config.get_template_directory()):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/alembic/templates'
This error is copied directly from the docker image I'm working in that doesn't have the venv from the above example.
OS: Debian GNU/Linux 10 (buster)
Have a nice day!
The text was updated successfully, but these errors were encountered: