Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/invoke/tasks.py", line 141, in argspec
context_arg = arg_names.pop(0)
IndexError: pop from empty list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/invoke", line 11, in <module>
sys.exit(program.run())
File "/usr/lib/python3.5/site-packages/invoke/program.py", line 269, in run
self._parse(argv)
File "/usr/lib/python3.5/site-packages/invoke/program.py", line 325, in _parse
self.load_collection()
File "/usr/lib/python3.5/site-packages/invoke/program.py", line 473, in load_collection
coll = loader.load(coll_name) if coll_name else loader.load()
File "/usr/lib/python3.5/site-packages/invoke/loader.py", line 53, in load
module = imp.load_module(name, fd, path, desc)
File "/usr/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/autoapi/tasks.py", line 57, in <module>
@task
File "/usr/lib/python3.5/site-packages/invoke/tasks.py", line 267, in task
return Task(args[0], **kwargs)
File "/usr/lib/python3.5/site-packages/invoke/tasks.py", line 58, in __init__
self.positional = self.fill_implicit_positionals(positional)
File "/usr/lib/python3.5/site-packages/invoke/tasks.py", line 149, in fill_implicit_positionals
args, spec_dict = self.argspec(self.body)
File "/usr/lib/python3.5/site-packages/invoke/tasks.py", line 144, in argspec
raise TypeError("Tasks must have an initial Context argument!")
TypeError: Tasks must have an initial Context argument!
I believe this is due to the invoke>=0.10.1 in requirements.txt. At some point, invoke must have broken backwards compatibility; pinning the version by changing the line to invoke==0.10.1 fixes things.
The following traceback is displayed:
I believe this is due to the
invoke>=0.10.1
inrequirements.txt
. At some point, invoke must have broken backwards compatibility; pinning the version by changing the line toinvoke==0.10.1
fixes things.