geodesign / django-raster

Django-raster allows you to create tiled map services (TMS) and raster map algebra end points for web maps. It is Python-based, and requires GeoDjango with a PostGIS backend.
BSD 3-Clause "New" or "Revised" License
96 stars 39 forks source link

ModuleNotFoundError: No module named 'celery.task' #54

Closed morysam96 closed 3 years ago

morysam96 commented 3 years ago

hi i get error After I adjust: 1-pip install django-raster 2-INSTALLED_APPS = ( ... 'raster', ) 3-path('raster/', include('raster.urls')), 4-python manage.py migrate

version my python 38 -64bit get error after add layer: ModuleNotFoundError: No module named 'celery.task' "POST /admin/raster/rasterlayer/add/ HTTP/1.1" 500 164659

tobiasmllr commented 3 years ago

I had the same problem. The '@task' decorator is deprecated since celery5. I replaced '@task' with '@shared_task' in .../lib/python3.8/site-packages/raster/tasks.py of my python environment. Also replace: from celery import group, shared_task