question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem importing celery to enable tasks

See original GitHub issue

Setting EXPLORER_TASKS_ENABLED = True causes the following exception:

ImportError: cannot import name 'task' from 'celery' (D:\Users\my-user\projects\my-project\venv-windows\lib\site-packages\celery\__init__.py)
Django==3.2.9
django-sql-explorer==2.4.2
celery==5.2.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
lawson89commented, Oct 24, 2022

Ok the boto3 stuff wasn’t bad - the celery stuff is proving to be a pain. Are you ok if we just do celery 5+?

0reactions
lawson89commented, Nov 7, 2022

Ok fixed the 3.7 issue by pinning a dependency I feel like this is ready for review. Unit tests are passing and I manually tested against celery4/boto3. I’ll test against celery5 when I get some time

Read more comments on GitHub >

github_iconTop Results From Across the Web

django celery import function not working - Stack Overflow
I have managed to configure celery with redis and execute the task that is as an example in the documentation but when I...
Read more >
Can not import Celery module error ..... · Issue #3786 - GitHub
Using command sudo service celeryd start , i am able to start worker but when i add my project to celeryd config file...
Read more >
Calling Tasks — Celery 5.2.7 documentation
Applying an object supporting the calling API (e.g., add(2, 2) ) means that the task will not be executed by a worker, but...
Read more >
Tasks — Celery 3.1.11 documentation
Tasks ¶. Tasks are the building blocks of Celery applications. A task is a class that can be created out of any callable....
Read more >
Celery does not register tasks - Django Forum
from celery import shared_task # app = Celery('tasks', ... task events: OFF (enable -E to monitor tasks in this worker) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found