Skip to content

Import Error: No module named 'worker' #14

@Gaurav-t

Description

@Gaurav-t
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 365, in execute
----------
----------
----------
    from worker import CeleryWorkerThread
ImportError: No module named 'worker'

I am getting above error when using this package with integration test framework behave. I am new to celery stuff and want to employ it in my automated tests.

One more error I was getting prior to above error is -

ImportError: from celerytest import CELERY_TEST_BACKEND_CONFIG, CELERY_TEST_CONFIG

So I set that in my config app like below -

CELERY_TEST_BACKEND_CONFIG = ""
CELERY_TEST_CONFIG = ""

Am I missing some kind of config here? Any kind of similar suggestions would be really helpful. Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions