I'm getting an error while runnign a flask app in python 3.6.4 with the following config:
from kombu_fernet.serializers.pickle import MIMETYPE
CELERY_TASK_SERIALIZER = 'fernet_pickle'
CELERY_RESULT_SERIALIZER = 'fernet_pickle'
CELERY_ACCEPT_CONTENT = [MIMETYPE]
Below is the erorr, its looking for unicode which isn't global in python3. Chaning the line to
Solved the issue.
11:17:56 web.1 | [2018-05-25 11:17:56,027: INFO/MainProcess] Received task: car_listing_flask_app.blueprints.general_info.views.wait_and_add_background_task[d8c098d6-3881-4dce-9348-8e898a39464e]
11:17:56 web.1 | [2018-05-25 11:17:56,045: ERROR/MainProcess] Pool callback raised exception: DecodeError(NameError("name 'unicode' is not defined",),)
11:17:56 web.1 | Traceback (most recent call last):
11:17:56 web.1 | File "/Users/V/Documents/Python/Car_Listing_Project/venv_car_listing_project/lib/python3.6/site-packages/kombu/utils/objects.py", line 42, in __get__
11:17:56 web.1 | return obj.__dict__[self.__name__]
11:17:56 web.1 | KeyError: 'chord'
11:17:56 web.1 | During handling of the above exception, another exception occurred:
11:17:56 web.1 | Traceback (most recent call last):
11:17:56 web.1 | File "/Users/V/Documents/Python/Car_Listing_Project/venv_car_listing_project/lib/python3.6/site-packages/kombu/utils/objects.py", line 42, in __get__
11:17:56 web.1 | return obj.__dict__[self.__name__]
11:17:56 web.1 | KeyError: '_payload'
11:17:56 web.1 | During handling of the above exception, another exception occurred:
11:17:56 web.1 | Traceback (most recent call last):
11:17:56 web.1 | File "/Users/V/Documents/Python/Car_Listing_Project/venv_car_listing_project/lib/python3.6/site-packages/kombu/serialization.py", line 50, in _reraise_errors
11:17:56 web.1 | yield
11:17:56 web.1 | File "/Users/V/Documents/Python/Car_Listing_Project/venv_car_listing_project/lib/python3.6/site-packages/kombu/serialization.py", line 263, in loads
11:17:56 web.1 | return decode(data)
11:17:56 web.1 | File "/Users/V/Documents/Python/Car_Listing_Project/venv_car_listing_project/lib/python3.6/site-packages/kombu_fernet/serializers/__init__.py", line 16, in inner
11:17:56 web.1 | if isinstance(encoded_message, unicode):
11:17:56 web.1 | NameError: name 'unicode' is not defined