Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problème de chargement de la configuration lors de la première installation #128

Closed
camillemonchicourt opened this issue Apr 13, 2023 · 2 comments
Assignees

Comments

@camillemonchicourt
Copy link
Member

camillemonchicourt commented Apr 13, 2023

  File "/home/elie/data/pnx-si/geonature.develop/backend/geonature/core/command/create_gn_module.py", line 86, in install_gn_module
    if not module_db_upgrade(module_dist, x_arg=x_arg):
  File "/home/elie/data/pnx-si/geonature.develop/backend/geonature/utils/module.py", line 90, in module_db_upgrade
    module_blueprint = module_dist.entry_points["blueprint"].load()  # force discovery of models
  File "/home/elie/data/pnx-si/geonature.develop/backend/venv/lib/python3.9/site-packages/importlib_metadata/__init__.py", line 203, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/elie/data/pnx-si/gn_module_export.develop/backend/gn_module_export/blueprint.py", line 533, in <module>
    if public_config["EXPORTS"]["expose_dsw_api"]:
KeyError: 'EXPORTS'

La config est importé avant le pip install du module, donc ne contient pas encore la config du module d’export.

@bouttier
Copy link
Contributor

Résolu par PnX-SI/GeoNature#2493

@bouttier
Copy link
Contributor

Solution de contournement pour GeoNature < 2.12.2 : relancer l’installation du module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants