Hi! I'm getting the following error when I am trying to run a flow locally through Prefect UI. I am ...
p
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
Maybe you have a container you are running with Python 3.8.9?
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
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
What is base python version without pyenv?
p
3.9.7
k
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?