I am trying to run a py.test script. When the script try to import py, I get a "No module named py"
I have py.test and python successfully installed.
My error message:
$ python >>> import py Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named py The sqript I am trying to run, are named run_tests.py, and are made by my University. It runs for all other people. It starts like this:
# This script can be used to automatically check the assignments of students import py import os import sys import argparse verbose = True # List of assignment names and achie..... My py.test version: 2.7.2, python version: 2.7.9, runing OSX
py. Do you mean that you wrote a script and saved it aspy.test? Why would you do that and why would you expect Python to look for a file namedpy.testwhen you writeimport py?py: pypi.python.org/pypi/py/1.4.30