ModuleNotFoundError: No module named ‘pytest’

Hi !
I have the same problem here, I verified the ‘replit.nix’ file and pytest is in the required modules but error still persist…

@pocaly please create new thread, including the issue descrption and link to your replit.

Yes sorry for the lack of information @sanity

So, I am also working on Arithmetic Formatter. When I click the run button, the following error is returned → ModuleNotFoundError: No module named ‘pytest’.

According to the solution above I have verified that the required modules look like this :

deps = [

Error still persist but I don’t understand where is the problem. If I run ‘pytest’ in the console there is no error.

link to my replit : boilerplate-arithmetic-formatter - Nix (beta) Repl - Replit

Thank for your help !

please when you have your own question create your own thread, it’s easier to keep track of who got answers already! I created a topic specific for your question!

1 Like

In .replit file (it’s hidden, click three dots at the right of Files tab and click Show hidden files), change the channel below [nix] to be "stable-21_11".

Ok I get it and I keep it in mind, thank you for your advise ! :slight_smile:

Error is fixed !! Thanks