Jason Martens
Jason Martens

Reputation: 1365

Why does "import ctask as task" fail in pyinvoke?

When I try to use ctask as defined in the getting started guide, it fails with the following error:

>>> from invoke import ctask as task
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name task

What happened to the ctask module?

Upvotes: 2

Views: 296

Answers (1)

Jason Martens
Jason Martens

Reputation: 1365

In pyinvoke 0.13.0, all tasks are now ctasks

Change your import to use task instead.

Upvotes: 3

Related Questions