ansible/pytest-ansible

Getting `ModuleNotFoundError: No module named 'pytest_ansible.molecule'` when running pytest

Ruchip16 opened this issue · 1 comments

I am receiving this ModuleNotFoundError while importing the required classes from molecule file while performing tests, and I tried adding the __init__.py file in the same folder and also added the PYTHONPATH to the root of the project but still nothing seems to work 🙁

Any ideas on how to resolve this would be highly appreciated!

image

closing the issue as it was a pytest error which got resolved when changed virtual environment and added module to the .config/requirements.txt file