Skip to content

Instantly share code, notes, and snippets.

@jessamynsmith
Created April 8, 2013 03:38
Show Gist options
  • Save jessamynsmith/5334087 to your computer and use it in GitHub Desktop.
Save jessamynsmith/5334087 to your computer and use it in GitHub Desktop.
South import failing, due to earlier mangling of modules by nose
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/pycharm/django_test_manage.py", line 113, in <module>
utility.execute()
File "/Applications/PyCharm.app/helpers/pycharm/django_test_manage.py", line 89, in execute
PycharmTestCommand().run_from_argv(self.argv)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Applications/PyCharm.app/helpers/pycharm/django_test_manage.py", line 76, in handle
failures = TestRunner(test_labels, verbosity=verbosity, interactive=interactive, failfast=failfast)
File "/Applications/PyCharm.app/helpers/pycharm/django_test_runner.py", line 153, in run_tests
extra_tests=extra_tests, **kwargs)
File "/Applications/PyCharm.app/helpers/pycharm/django_test_runner.py", line 86, in run_tests
extra_tests)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django_nose/runner.py", line 155, in run_tests
result = self.run_suite(nose_argv)
File "/Applications/PyCharm.app/helpers/pycharm/django_test_runner.py", line 78, in run_suite
testRunner=TeamcityNoseRunner(config=config))
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/nose/core.py", line 118, in __init__
**extra_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 95, in __init__
self.runTests()
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/nose/core.py", line 197, in runTests
result = self.testRunner.run(self.test)
File "/Applications/PyCharm.app/helpers/pycharm/nose_utils.py", line 221, in run
wrapper = plugins.prepareTest(test)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/nose/plugins/manager.py", line 99, in __call__
return self.call(*arg, **kw)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/nose/plugins/manager.py", line 167, in simple
result = meth(*arg, **kw)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django_nose/plugin.py", line 78, in prepareTest
self.old_names = self.runner.setup_databases()
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django_nose/runner.py", line 323, in setup_databases
return super(NoseTestSuiteRunner, self).setup_databases()
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/test/simple.py", line 270, in setup_databases
connection.creation.create_test_db(self.verbosity, autoclobber=not self.interactive)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/db/backends/creation.py", line 353, in create_test_db
call_command('syncdb', verbosity=verbosity, interactive=False, database=self.connection.alias)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/core/management/__init__.py", line 166, in call_command
return klass.execute(*args, **defaults)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 99, in handle_noargs
management.call_command('migrate', **options)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/core/management/__init__.py", line 166, in call_command
return klass.execute(*args, **defaults)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/south/management/commands/migrate.py", line 84, in handle
apps = list(migration.all_migrations())
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/south/migration/base.py", line 27, in all_migrations
app = ask_for_it_by_name(app_path)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/south/utils.py", line 34, in ask_for_it_by_name
ask_for_it_by_name.cache[name] = _ask_for_it_by_name(name)
File "/Users/jessamyn/.virtualenvs/MapStore/lib/python2.7/site-packages/south/utils.py", line 28, in _ask_for_it_by_name
return getattr(module, bits[-1])
AttributeError: 'module' object has no attribute 'Products'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment