When running vmcloak migrate, I get the following error:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/alembic", line 11, in <module>
load_entry_point('alembic==1.0.10', 'console_scripts', 'alembic')()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/alembic/config.py", line 540, in main
CommandLine(prog=prog).main(argv=argv)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/alembic/config.py", line 534, in main
self.run_cmd(cfg, options)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/alembic/config.py", line 514, in run_cmd
**dict((k, getattr(options, k, None)) for k in kwarg)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/alembic/command.py", line 276, in upgrade
script.run_env()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/alembic/script/base.py", line 475, in run_env
util.load_python_file(self.dir, "env.py")
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 90, in load_python_file
module = load_module_py(module_id, path)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/alembic/util/compat.py", line 216, in load_module_py
mod = imp.load_source(module_id, path, fp)
File "./env.py", line 9, in <module>
from vmcloak.repository import Base, repository
ImportError: No module named vmcloak.repository
2022-12-07 01:31:53,291 vmcloak ERROR: Database migration failed: Command '['alembic', 'upgrade', 'head']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/Users/cassie/cuckoo/vmcloak/vmcloak/main.py", line 884, in migrate
subprocess.check_call(
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['alembic', 'upgrade', 'head']' returned non-zero exit status 1.
The problem seems to be in /vmcloak/data/db_migration/env.py, importing vmcloak.repository. causes an error.
When running
vmcloak migrate
, I get the following error:The problem seems to be in
/vmcloak/data/db_migration/env.py
, importing vmcloak.repository. causes an error.