so i got it to the serialisation to work with the ...
# prefect-community
so i got it to the serialisation to work with the LocalAgent but with a DockerAgent it gives
Copy code
Failed to load and execute Flow's environment: TypeError('an integer is required (got type bytes)')
is it wrong to use
with the docker agent?
Hm no, that should be fine - can you share the environment code you used for your flow?
ah got it
looks like i must use 3.8.5 on my flow-submitting client end
ah that makes sense - you can configure that in the Docker storage interface via the
kwarg (in this case, specifying 3.8 should be sufficient - the minor version usually has no impact)
oh wait i am actually using GCS storage
must i use docker storage when using docker agents?
Ah interesting - nope, but I assume you are specifying a Docker image via your environment metadata?
ah i am currently trying to execute a non-docker flow with the docker agent
or must i keep at least 2 agents one for docker and one for non-docker?
Are you sure you aren’t specifying
on your Environment? The docker agent should raise an error if you don’t have a configured image for it to use. Either way, if you add
metadata={"image": "prefecthq/prefect:0.13.6-python3.8"}
to your Environment initialization (or some other appropriate image for your Flow that has all the necessary dependencies + the right version of python) you should be good
ah i was starting the agent with CLI
Copy code
$ prefect agent start docker   -l dev -l docker -l gcs-flow-storage
btw it is working now when i match the python versions
💯 1