Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'grp' on windows

As i was going through the Celery implementation from the Celery documentation,

celery -A tasks worker --loglevel=INFO

gave output unexpected that from the documentation,

File "d:\101_all_projects\celery-testing\venv\lib\site-packages\celery\platforms.py", line 9, in import grp ModuleNotFoundError: No module named 'grp'

Is this because i am on windows?

like image 262
aNup Avatar asked May 24 '21 07:05

aNup


Video Answer


2 Answers

If you're using the PyPi package django-celery-beat it looks like it installs the most recent version of the required package celery rather than installing a compatible version (by the time I'm posting this, 25th of May 2021 this would be v5.1.0), which seems to have compatibility issues with django-celery-beat version 2.2.0 (the most recent) as well as Windows OS.

I suggest you try

pip uninstall celery
pip install celery==5.0.5
like image 151
Menas Avatar answered Oct 23 '22 14:10

Menas


This is fixed with celery ^5.1.1 as you can see here. You just need to update celery now

like image 2
M.Winkens Avatar answered Oct 23 '22 12:10

M.Winkens