No module named 'py.io'

For some reason, pytest is giving an error 'ModuleNotFoundError: No module named 'py.io''.

Here are my installed packages:

And my default test runner is pytest.

3 comments
Comment actions Permalink

Are you able to run this pytest from the terminal? E.g. `pytest <path_to_test>`

0
Comment actions Permalink

Yes, command line works fine.

0
Comment actions Permalink

Ok then, could you please...

1. Show the full console output from running the test in PyCharm (including the run command)

2. Show the command from running the same test in system terminal, using the absolute path to the interpreter

3. Run the snippet from https://gist.github.com/aresler/22c59d7883fd57dddb4c57a7f96603d6 both in PyCharm and system terminal, using the interpreter you're running the test with.

0

Please sign in to leave a comment.