Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

automig_sqlite fails without psycopg2 #14

Open
abe-winter opened this issue May 16, 2020 · 0 comments
Open

automig_sqlite fails without psycopg2 #14

abe-winter opened this issue May 16, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@abe-winter
Copy link
Owner

abe-winter commented May 16, 2020

  • sqlite users shouldn't have to install psyco
  • solution: move common code to actual common so automig_sqlite doesn't import migrate_pg
  • traceback:
automig_sqlite --glob schema.sql init
Traceback (most recent call last):
  File ".../.direnv/python-3.7.5/bin/automig_sqlite", line 5, in <module>
    from automig.automig_sqlite import main
  File ".../.direnv/python-3.7.5/lib/python3.7/site-packages/automig/automig_sqlite.py", line 5, in <module>
    from .migrate_pg import create_parser, init, update
  File ".../.direnv/python-3.7.5/lib/python3.7/site-packages/automig/migrate_pg.py", line 5, in <module>
    import psycopg2 # pylint: disable=import-error
ModuleNotFoundError: No module named 'psycopg2'
@abe-winter abe-winter added the bug Something isn't working label May 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant