Hi! I'm getting the following error when I am trying to run a flow locally through Prefect UI. I am launching both the
prefect server
and
prefect agent
from a directory where version
3.8.9
is active (I am using
pyenv
), so I don't know where this version
3.7.10
comes from. How can I tell which python version my agent uses? I assume, according to the error message, that the faulty version
3.7.10
is tied to the agent.
Copy code
Failed to load and execute Flow's environment: StorageError("An error occurred while unpickling the flow:\n TypeError('code() takes at most 15 arguments (16 given)')\nThis may be due to one of the following version mismatches between the flow build and execution environments:\n - python: (flow built with '3.8.9', currently running with '3.7.10')")
k
Kevin Kho
10/01/2021, 10:34 PM
Maybe you have a container you are running with Python 3.8.9?
Kevin Kho
10/01/2021, 10:35 PM
This error is definitely a mismatch though. You know, someone else was reporting pyenv not being respected. I don’t know if that’s true
p
Pierre Pasquet
10/02/2021, 12:17 AM
3.8.9
is the expected version - i just don't know where
3.7.10
comes from given that it's not even installed on my computer.
k
Kevin Kho
10/02/2021, 1:10 AM
What is base python version without pyenv?
p
Pierre Pasquet
10/04/2021, 12:48 PM
3.9.7
k
Kevin Kho
10/04/2021, 1:44 PM
Do you have a 3.7.10 somewhere in the pyenv? I was looking into pyenv and I might open an issue on Github to explore this deeper. I am not sure the local agent works with it. But that seems to be unrelated to your problem
What type of agent are you using here?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.