Control: reassign -1 migrate 0.11.0-4
2018-12-20, Mattia Rizzolo:
> All of them seems to always boil down to:
> builtins.NameError: name 'sqlite3' is not defined
The error actually pops into migrate code.
File "/usr/lib/python3/dist-packages/migrate/changeset/databases/sqlite.py",
line 99, in recreate_table
tup = sqlite3.sqlite_version_info
builtins.NameError: name 'sqlite3' is not defined
I've done some digging, and it looks like it is caused by the latest
version of migrate. Indeed, it applies a patch from ubuntu:
https://salsa.debian.org/openstack-team/libs/migrate/commit/6de8f506fd9265f52a2086ec1e3cde35802f73fb
Which references the sqlite3 symbol which is not imported in the
migrate/changeset/databases/sqlite.py file.
I would suggest modifying this patch and add the missing import.
Thanks.
--
Robin