I'm starting to leart some prefect + python and I'm facing a strange error at the very beginning with a very easy script:
I have already tried it in two diferents PC.
I'm starting to leart some prefect + python and I'm facing a strange error at the very beginning with a very easy script:
I have already tried it in two diferents PC.
It looks like you've installed Prefect 2, but are following instructions for Prefect 1.
I recommend starting with the first steps tutorial in the Prefect docs: https://docs.prefect.io/tutorials/first-steps/
the way with
statements work is that the variable you're defining only exists within the indented code block underneath the with
statement itself. The end of your code should be:
with Flow("prueba 1") as flow:
carga()
flow.run()