1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Pytest File Name is giving me Traceback file frozen runpy & boostrap & framework...

Discussão em 'Python' iniciado por Stack, Outubro 5, 2024 às 16:42.

  1. Stack

    Stack Membro Participativo

    I'm trying to run tests in python files that have been built on the back of the Cairo programming language. But, when I run python3 -m pytest /test_name.py I get the following traceback error. It seems something has mocked up my pytest after I installed some crypto module some time ago.

    Traceback (most recent call last):
    File "<frozen runpy>", line 198, in _run_module_as_main
    ...
    File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pytest/__main__.py", line 9, in <module>
    raise SystemExit(pytest.console_main())
    ...
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    ...
    from Crypto import (
    ModuleNotFoundError: No module named 'Crypto'

    Continue reading...

Compartilhe esta Página