mikeizbicki / cmc-csci046

CMC's Data Structures and Algorithms Course Materials
52 stars 152 forks source link

ModuleNotFoundError when running pytest command #480

Open milesba4 opened 1 year ago

milesba4 commented 1 year ago

Hello Mike,

When I run the command $python3 -m pytest, I get the error: ModuleNotFoundError: No module named 'sorting'. My python file is named sorting.py, so im not sure what's causing the issue.

npcrites commented 1 year ago

I am getting this same error for the Hypothesis module in the testing file. I tried to use Vim to install Hypothesis both in the test_main file and in the sorting directory, but am still getting the ModuleNotFoundError when running Pytest. My only suggestion would to be sure you're running the $ python3 -m pytest command from the right working directory.