From 77a9d05f93e44ba477f4ec99031ebdb3019ef1cc Mon Sep 17 00:00:00 2001 From: Alexey Baranov Date: Tue, 13 Oct 2020 11:55:59 +0300 Subject: [PATCH] fix "ModuleNotFoundError: No module named 'celery.utils.encoding'" (#365) Co-authored-by: Asif Saif Uddin --- django_celery_beat/schedulers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django_celery_beat/schedulers.py b/django_celery_beat/schedulers.py index 4761492d..ff6ff2ec 100644 --- a/django_celery_beat/schedulers.py +++ b/django_celery_beat/schedulers.py @@ -8,6 +8,8 @@ from celery import current_app from celery import schedules from celery.beat import Scheduler, ScheduleEntry +from kombu.utils.encoding import safe_str, safe_repr + from celery.utils.log import get_logger from celery.utils.time import maybe_make_aware from kombu.utils.encoding import safe_str, safe_repr