Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lettuce and django-celery #436

Open
pedrokiefer opened this issue Apr 9, 2014 · 0 comments
Open

Lettuce and django-celery #436

pedrokiefer opened this issue Apr 9, 2014 · 0 comments

Comments

@pedrokiefer
Copy link

I was using lettuce without a problem, until installing django-celery. Now it doesn't even run spiting the following error:

Traceback (most recent call last):
  File "/Users/pedro/.virtualenvs/mobile-mgmt/src/lettuce/lettuce/registry.py", line 135, in call_hook
    callback(*args, **kw)
  File "/Users/pedro/Projects/Tecnosenior/cellphone_receiver/mobile-mgmt/mobile/terrain.py", line 11, in initial_setup
    call_command('syncdb', interactive=False, verbosity=0)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/__init__.py", line 159, in call_command
    return klass.execute(*args, **defaults)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 92, in handle_noargs
    syncdb.Command().execute(**options)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 162, in handle_noargs
    database=db, skip_validation=True)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/__init__.py", line 159, in call_command
    return klass.execute(*args, **defaults)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 55, in handle
    self.loaddata(fixture_labels)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 84, in loaddata
    self.load_label(fixture_label)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 119, in load_label
    for fixture_file, fixture_dir, fixture_name in self.find_fixtures(fixture_label):
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/utils/functional.py", line 32, in wrapper
    result = func(*args)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 182, in _find_fixtures
    fixture_dirs = self.fixture_dirs
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/utils/functional.py", line 49, in __get__
    res = instance.__dict__[self.func.__name__] = self.func(instance)
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 233, in fixture_dirs
    for path in get_app_paths():
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/db/models/loading.py", line 163, in get_app_paths
    for app in self.get_apps():
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/south/migration/migrators.py", line 242, in <lambda>
    new_cache.get_apps = lambda: [new_cache.get_app(target.app_label())]
  File "/Users/pedro/.virtualenvs/mobile-mgmt/lib/python2.7/site-packages/django/db/models/loading.py", line 190, in get_app
    raise ImproperlyConfigured("App with label %s could not be found" % app_label)
ImproperlyConfigured: App with label djcelery could not be found

my terrain.py has the following content for @before.harvest:

def initial_setup(server):
    call_command('syncdb', interactive=False, verbosity=0)
    call_command('flush', interactive=False, verbosity=0)
    call_command('migrate', interactive=False, verbosity=0)
    call_command('loaddata', 'all', verbosity=0)
    setup_test_environment()

I would like to keep on using lettuce, but with this error it's kind of impossible to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant