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.Dismiss alert
L'installation de GN Citizen avec TaxHub dans la même BDD semble poser problème pour l'utilisation des commandes flask alembic (erreur de partage de revisions alembic ?)
Steps to reproduce the issue
Installer citizen avec taxhub dans la même BDD
Source virtual environnement python .
Allez dans le backend de citizen.
Et lancer la commande flask db status
Versions
1.1.0
Additional context
Réponse à la commande flask db status
Traceback (most recent call last):
File "/home/geonatureadmin/citizen/backend/.venv/bin/flask", line 8, in<module>sys.exit(main())
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/flask/cli.py", line 1064, in main
cli.main()
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
returnf(get_current_context(), *args, **kwargs)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/flask/cli.py", line 358, in decorator
return __ctx.invoke(f, *args, **kwargs)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/utils_flask_sqla/commands.py", line 128, in status
applied_rev = set(script.iterate_revisions(current_heads, "base"))
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 813, in iterate_revisions
revisions, heads = fn(
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 1438, in _collect_upgrade_revisions
forrevin self._parse_upgrade_target(
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 1229, in _parse_upgrade_target
return self.get_revisions(target)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 543, in get_revisions
return sum([self.get_revisions(id_elem) forid_eleminid_], ())
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 543, in<listcomp>return sum([self.get_revisions(id_elem) forid_eleminid_], ())
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 566, in get_revisions
return tuple(
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 567, in<genexpr>
self._revision_for_ident(rev_id, branch_label)
File "/home/geonatureadmin/citizen/backend/.venv/lib/python3.9/site-packages/alembic/script/revision.py", line 638, in _revision_for_ident
raise ResolutionError(
alembic.script.revision.ResolutionError: No such revision or branch '1f7b958108ed'
The text was updated successfully, but these errors were encountered:
What is the bug or the crash?
L'installation de GN Citizen avec TaxHub dans la même BDD semble poser problème pour l'utilisation des commandes flask alembic (erreur de partage de revisions alembic ?)
Steps to reproduce the issue
Installer citizen avec taxhub dans la même BDD
Source virtual environnement python .
Allez dans le backend de citizen.
Et lancer la commande
flask db status
Versions
1.1.0
Additional context
Réponse à la commande flask db status
The text was updated successfully, but these errors were encountered: