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

[Dev] Impossible de lancer le serveur sous Ubuntu 18.04 #5667

Closed
Situphen opened this issue Mar 24, 2020 · 3 comments · Fixed by #5668
Closed

[Dev] Impossible de lancer le serveur sous Ubuntu 18.04 #5667

Situphen opened this issue Mar 24, 2020 · 3 comments · Fixed by #5668
Labels
C-Back Concerne le back-end Django S-Régression Corrige un problème sur un composant qui fonctionnait auparavant

Comments

@Situphen
Copy link
Member

Quand j'essaie de lancer le serveur avec make run-back sur upstream/dev avec toutes les dépendances à jours, j'ai cette erreur :

Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/utils/autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/utils/autoreload.py", line 77, in raise_last_exception
    raise _exception[1]
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/core/management/__init__.py", line 337, in execute
    autoreload.check_errors(django.setup)()
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/utils/autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/situphen/Code/zds-site/zds/member/models.py", line 16, in <module>
    from zds.tutorialv2.models.database import PublishableContent, PublishedContent
  File "/home/situphen/Code/zds-site/zds/tutorialv2/models/database.py", line 24, in <module>
    from git import Repo, BadObject
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/git/__init__.py", line 38, in <module>
    from git.exc import *                       # @NoMove @IgnorePep8
  File "/home/situphen/Code/zds-site/zdsenv/lib/python3.6/site-packages/git/exc.py", line 8, in <module>
    from gitdb.exc import *     # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614
ModuleNotFoundError: No module named 'gitdb.exc'

Ça me semble lié à l'introdution de gitdb dans le requirements.txt par #5390, @A-312 peux-tu me dire pourquoi cette dépendance est nécessaire ? :)

@Situphen Situphen added S-Régression Corrige un problème sur un composant qui fonctionnait auparavant C-Back Concerne le back-end Django labels Mar 24, 2020
@A-312
Copy link
Contributor

A-312 commented Mar 24, 2020

Parce que sous linux/windows cette dépendance manquait et entraînait le plantage de l'installation (voir discord)

@A-312
Copy link
Contributor

A-312 commented Mar 24, 2020

image

je croyais qu'il y avait aussi un cas sur linux, impossible de le retrouver

@A-312
Copy link
Contributor

A-312 commented Mar 24, 2020

#5640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Back Concerne le back-end Django S-Régression Corrige un problème sur un composant qui fonctionnait auparavant
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants