https://prefect.io logo
m

Milly gupta

02/09/2021, 9:09 PM
Hi, I am returning multiple values from a task and using task decorator with nout option(@task(nout=2)) but I am getting TypeError: __init__() got an unexpected keyword argument 'nout'. Am I doing anything wrong?
j

Jim Crist-Harif

02/09/2021, 9:10 PM
What version of prefect are you using?
$ prefect version
m

Milly gupta

02/09/2021, 9:11 PM
0.13.1
j

Jim Crist-Harif

02/09/2021, 9:12 PM
Ah, you'll need to upgrade. That feature was added in 0.13.17, but the latest release is 0.14.6. I recommend upgrading to the latest version.
m

Milly gupta

02/09/2021, 9:12 PM
When I install pip install prefect, I get all requirements are satisifed
I tried conda as well
So how can I upgrade?
j

Jim Crist-Harif

02/09/2021, 9:12 PM
pip install -U prefect
You need to tell pip/conda that you want to upgrade, otherwise they see that the package is already installed and leave everything as is.
m

Milly gupta

02/09/2021, 9:13 PM
Ah makes sense. Thank you for the quick resposne