Currently I have a tasks file which defines tasks as follows:
@task
def install(c, qt_version):
"""Downloads the specified Qt version from SFTP server and installs it in the default location."""
installer_path = _download_installer(qt_version, TARGET_DIR)
print(c.cwd())
Which errors out when accessing the attributes on the task context with the following error.
The tasks are distributed in the package as an entry point as follows:
Traceback (most recent call last):
File "/Users/admin/Workspace/repo/env/bin/newmanage", line 8, in <module>
sys.exit(program.run())
File "/Users/admin/Workspace/repo/env/lib/python3.8/site-packages/invoke/program.py", line 384, in run
self.execute()
File "/Users/admin/Workspace/repo/env/lib/python3.8/site-packages/invoke/program.py", line 569, in execute
executor.execute(*self.tasks)
File "/Users/admin/Workspace/repo/env/lib/python3.8/site-packages/invoke/executor.py", line 129, in execute
result = call.task(*args, **call.kwargs)
File "/Users/admin/Workspace/repo/env/lib/python3.8/site-packages/invoke/tasks.py", line 127, in __call__
result = self.body(*args, **kwargs)
File "/Users/admin/Workspace/repo/submodules/repo/src/repo/newmanage/tasks_squish.py", line 95, in install
print(c.cwd())
TypeError: 'str' object is not callable
Does anyone know why the argument passed by the task decorator is of type str in this case?
Any idea?
Currently I have a tasks file which defines tasks as follows:
Which errors out when accessing the attributes on the task context with the following error.
The tasks are distributed in the package as an entry point as follows:
Does anyone know why the argument passed by the task decorator is of type str in this case? Any idea?
Used invoke version is:
Many thanks in advance!