AntoineArchy / Lettings-FR

Refactoring d'une base de code comportant de nombreuses dettes techniques. Mise en place d'un pipeline CI/CD avec GitHub Actions et Docker.
1 stars 0 forks source link

ModuleNotFoundError: No module named 'six' #1

Closed AntoineArchy closed 12 months ago

AntoineArchy commented 1 year ago

Après clone du dépot, l'installation se passe bien mais lors de l'execution de la commande 'pytest', erreur :

^C(venv) archy@ArchyMothership:~/Oc Formation/Projets/p13/intro/second/Lettings-FR$ pytest
Traceback (most recent call last):
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/bin/pytest", line 10, in <module>
    sys.exit(console_main())
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 192, in console_main
    code = main()
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 150, in main
    config = _prepareconfig(args, plugins)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 331, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 115, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 130, in _multicall
    teardown[0].send(outcome)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/helpconfig.py", line 104, in pytest_cmdline_parse
    config: Config = outcome.get_result()
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pluggy/_result.py", line 114, in get_result
    raise exc.with_traceback(exc.__traceback__)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 77, in _multicall
    res = hook_impl.function(*args)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1075, in pytest_cmdline_parse
    self.parse(args)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1425, in parse
    self._preparse(args, addopts=addopts)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1305, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 398, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 186, in exec_module
    exec(co, module.__dict__)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pytest_django/plugin.py", line 17, in <module>
    from .fixtures import django_assert_num_queries  # noqa
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 186, in exec_module
    exec(co, module.__dict__)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pytest_django/fixtures.py", line 12, in <module>
    from . import live_server_helper
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 186, in exec_module
    exec(co, module.__dict__)
  File "/home/archy/Oc Formation/Projets/p13/intro/second/venv/lib/python3.10/site-packages/pytest_django/live_server_helper.py", line 1, in <module>
    import six
ModuleNotFoundError: No module named 'six'

Comportement