crackerjack
crackerjack copied to clipboard
DB: can't init db while installing
I've installed python, pip and the venv and yet when i run flash db init then i get this:
Traceback (most recent call last):
File "/home/user/crackerjack/venv/bin/flask", line 8, in <module>
sys.exit(main())
~~~~^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/flask/cli.py", line 967, in main
cli.main(args=sys.argv[1:], prog_name="python -m flask" if as_module else None)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/flask/cli.py", line 586, in main
return super(FlaskGroup, self).main(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/flask/cli.py", line 426, in decorator
return __ctx.invoke(f, *args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/kuba/crackerjack/venv/lib/python3.13/site-packages/flask_migrate/cli.py", line 53, in init
_init(directory or g.directory, multidb, template, package)
^^^^^^^^^^^
File "/home/user/crackerjack/venv/lib/python3.13/site-packages/werkzeug/local.py", line 347, in __getattr__
return getattr(self._get_current_object(), name)
AttributeError: '_AppCtxGlobals' object has no attribute 'directory'
python version is 3.13.2, pip is 24.3.1
That was on arch, this also fails on Hive OS
Not sure if this a a Flask error, now, appending -d migrations it works fine
I no longer have access to this repo, but I've pushed the changes to https://github.com/sadreck/crackerjack
I just pinned versions in the requirements.txt file and it should work now.
Works, doesn't need arguments and the web ui actually works, should this be closed now?