
Traceback (most recent call last):


 "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/usr/lib/python3.5/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/home/pi/env/lib/python3.5/site-packages/pip/__main__.py", line 16, in <module>

from pip._internal import main as _main
# isort:skip # noqa


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/__init__.py", line 40, in <module>

from pip._internal.cli.autocompletion import autocomplete


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>

from pip._internal.cli.main_parser import create_main_parser


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/cli/main_parser.py", line 12, in <module>

from pip._internal.commands import (


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/commands/__init__.py", line 6, in <module>

from pip._internal.commands.completion import CompletionCommand


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/commands/completion.py", line 6, in <module>

from pip._internal.cli.base_command import Command


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/cli/base_command.py", line 25, in <module>

from pip._internal.index import PackageFinder


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/index.py", line 41, in <module>

from pip._internal.wheel import Wheel


 "/home/pi/env/lib/python3.5/site-packages/pip/_internal/wheel.py", line 7, in <module>

import compileall


 "/usr/lib/python3.5/compileall.py", line 20, in <module>

from concurrent.futures import ProcessPoolExecutor


 "/home/pi/env/lib/python3.5/site-packages/concurrent/futures/__init__.py", line 8, in <module>

from concurrent.futures._base import (FIRST_COMPLETED,


 "/home/pi/env/lib/python3.5/site-packages/concurrent/futures/_base.py", line 381

raise exception_type, self._exception, self._traceback

^

SyntaxError: invalid syntax

Traceback (most recent call last):

[…]


 "…/celery/__main__.py", line 14, in main

_main()


 "…/celery/bin/celery.py", line 326, in main

cmd.execute_from_commandline(argv)


 "…/celery/bin/celery.py", line 488, in execute_from_commandline

super(CeleryCommand, self).execute_from_commandline(argv)))


 "…/celery/bin/base.py", line 281, in execute_from_commandline

return self.handle_argv(self.prog_name, argv[1:])


 "…/celery/bin/celery.py", line 480, in handle_argv

return self.execute(command, argv)


 "…/celery/bin/celery.py", line 412, in execute

).run_from_argv(self.prog_name, argv[1:], command=argv[0])


 "…/celery/bin/worker.py", line 221, in run_from_argv

return self(*args, **options)


 "…/celery/bin/base.py", line 244, in __call__

ret = self.run(*args, **kwargs)


 "…/celery/bin/worker.py", line 255, in run

**kwargs)


 "…/celery/worker/worker.py", line 95, in __init__

self.on_before_init(**kwargs)


 "…/celery/apps/worker.py", line 97, in on_before_init

trace.setup_worker_optimizations(self.app, self.hostname)


 "…/celery/app/trace.py", line 568, in setup_worker_optimizations

app.finalize()


 "…/celery/app/base.py", line 512, in finalize

_announce_app_finalized(self)


 "…/celery/_state.py", line 52, in _announce_app_finalized

callback(app)


 "…/celery/app/__init__.py", line 59, in <lambda>

lambda app: app._task_from_fun(fun, **options)


 "…/celery/app/base.py", line 453, in _task_from_fun

'__header__': staticmethod(head_from_fun(fun, bound=bind)),


 "…/celery/utils/functional.py", line 283, in head_from_fun

exec(definition, namespace)


 "<string>", line 2

def some_task(*args, **kwargs, param="default"):

^
SyntaxError: invalid syntax
