beeware/cricket

Import Error: Cannot find module runners

khoobks opened this issue · 2 comments

The file cricket/django/models.py seems to point at the test runner "cricket.django.runners.TestExecutor" when it should actually be "cricket.django.executor.TestExecutor".

The full stack trace is

Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/benk/workspace/swcc/VirtualEnv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
utility.execute()
File "/home/benk/workspace/swcc/VirtualEnv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/benk/workspace/swcc/VirtualEnv/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 51, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/home/benk/workspace/swcc/VirtualEnv/local/lib/python2.7/site-packages/django/core/management/base.py", line 218, in run_from_argv
parser = self.create_parser(argv[0], argv[1])
File "/home/benk/workspace/swcc/VirtualEnv/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 54, in create_parser
test_runner_class = get_runner(settings, self.test_runner)
File "/home/benk/workspace/swcc/VirtualEnv/local/lib/python2.7/site-packages/django/test/utils.py", line 136, in get_runner
test_module = __import__(test_module_name, {}, {}, force_str(test_path[-1]))
ImportError: No module named runners

Confirmed; thanks for the report. Chalk this one up to the hazards of running out of a local directory with stale pyc files.