ModuleNotFoundError: No module named 'py test' on replit.com

I am working on Arithmetic Formatter project in python on replit.com but it is returning an error ModuleNotFoundError: No module named 'py test

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36 Edg/103.0.1264.44

Challenge: Arithmetic Formatter

Link to the challenge:

Hi

It seems that something has changed (very recently) in replit.

See this forum post for a possible solution.

1 Like

Thank you. It worked!

I have found is adding required modules manually in the replit.nix file (it’s hidden, you will need to click three dots at the right of the Files tab and click Show hidden files ). Then add the required modules in the deps , for this project it should look like this:

deps = [
pkgs.python38Full
pkgs.python38Packages.pytest
];

Thank you

1 Like