I'm using celery as task runner. It's been working fine with Python 2.7. Recently I upgraded my PC to Ubuntu 16.04 and it starts to give met the following error:
from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
ImportError: cannot import name _uuid_generate_random
Full call stack:
Traceback (most recent call last):
File "venv/bin/celery", line 7, in <module>
from celery.__main__ import main
File "venv/local/lib/python2.7/site-packages/celery/__init__.py", line 133, in <module>
from celery import five # noqa
File "venv/local/lib/python2.7/site-packages/celery/five.py", line 153, in <module>
from kombu.utils.compat import OrderedDict # noqa
File "venv/local/lib/python2.7/site-packages/kombu/utils/__init__.py", line 19, in <module>
from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
ImportError: cannot import name _uuid_generate_random
This seems rather strange to me. Currently my python version is:
Python 2.7.10
Was there some syntax change within the 2.7.x versions?
_uuid_generate_random). You probably shouldn't do this as they could change without any notice between versions...