This content is protected, please login and enroll in the course to view this content!
2 Commentaires
Babou2606
sur 7 décembre 2020 à 14 h 28 min
Bonjour,
En étape 15 je me retrouve avec une erreur python. Peut être un soucis avec la version de mon python sur mon centos ?
Step 15/17 : RUN python3 -m pytest
—> Running in f3a8060a2e7e
Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.5/runpy.py”, line 133, in _get_module_details
return _get_module_details(pkg_main_name, error)
File “/usr/lib/python3.5/runpy.py”, line 109, in _get_module_details
__import__(pkg_name)
File “/usr/local/lib/python3.5/dist-packages/pytest/__init__.py”, line 3, in
from . import collect
File “/usr/local/lib/python3.5/dist-packages/pytest/collect.py”, line 8, in
from _pytest.deprecated import PYTEST_COLLECT_MODULE
File “/usr/local/lib/python3.5/dist-packages/_pytest/deprecated.py”, line 11, in
from _pytest.warning_types import PytestDeprecationWarning
File “/usr/local/lib/python3.5/dist-packages/_pytest/warning_types.py”, line 7, in
from _pytest.compat import final
File “/usr/local/lib/python3.5/dist-packages/_pytest/compat.py”, line 57, in
import importlib_metadata # noqa: F401
File “/usr/local/lib/python3.5/dist-packages/importlib_metadata/__init__.py”, line 43, in
class PackageNotFoundError(ModuleNotFoundError):
NameError: name ‘ModuleNotFoundError’ is not defined
Bonjour,
En étape 15 je me retrouve avec une erreur python. Peut être un soucis avec la version de mon python sur mon centos ?
Step 15/17 : RUN python3 -m pytest
—> Running in f3a8060a2e7e
Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.5/runpy.py”, line 133, in _get_module_details
return _get_module_details(pkg_main_name, error)
File “/usr/lib/python3.5/runpy.py”, line 109, in _get_module_details
__import__(pkg_name)
File “/usr/local/lib/python3.5/dist-packages/pytest/__init__.py”, line 3, in
from . import collect
File “/usr/local/lib/python3.5/dist-packages/pytest/collect.py”, line 8, in
from _pytest.deprecated import PYTEST_COLLECT_MODULE
File “/usr/local/lib/python3.5/dist-packages/_pytest/deprecated.py”, line 11, in
from _pytest.warning_types import PytestDeprecationWarning
File “/usr/local/lib/python3.5/dist-packages/_pytest/warning_types.py”, line 7, in
from _pytest.compat import final
File “/usr/local/lib/python3.5/dist-packages/_pytest/compat.py”, line 57, in
import importlib_metadata # noqa: F401
File “/usr/local/lib/python3.5/dist-packages/importlib_metadata/__init__.py”, line 43, in
class PackageNotFoundError(ModuleNotFoundError):
NameError: name ‘ModuleNotFoundError’ is not defined
Hello
c’est le même fichier que le mien ?
Dirane