Hi, may I ask what is the version of python image ...
# prefect-server
s
Hi, may I ask what is the version of python image installed by the Prefect server helm chart ?
And can this be changed?
k
Hi @Scarlett King, I believe it’s 3.7, let me see if it can be changed. I think you would need to change the images pulled in the helm chart. Our images for other Python versions are here
Confirmed the above
s
Hi @Kevin Kho, thank you for your reply. What command should I use to change the image to 3.8?
k
You need to edit the
Chart.yaml
file and tag the images appropriately with the
latest-python3.8
s
Thank you @Kevin Kho, do you know what I need to edit/add to the Chart.yaml file? I can’t see anything on Python there
k
Oh so sorry forgot to respond. I think it’s here and you want to change
prefecthq/prefect
to
prefecthq/prefect:latest-python3.8
s
Hey, so we tried to change it according to your suggestion but the build failed. Would it work if we change tag: null to tag: latest-python3.8?
k
Oh sorry yeah that is probably way easier. Let me double check that though.
It’s this one you want to set. Not the
serverVersionTag
. “latest” to “latest-python3.8"
s
Hey, so we did this but the python version changed to 3.7.11 instead of 3.8
k
Ok asking the team
s
I think it changed to 3.7.11 because of the recent release
z
Hey @Scarlett King -- we only publish python 3.7 images for Prefect Server so the Towel/GraphQL services will only hav Python 3.7 unless you publish your own images with Python upgraded.
prefectVersionTag
allows you to change the image version for services/jobs which use the
prefecthq/prefect
images. These services include the agents and the tenant creation jobs right now.
Copy code
❯ docker run prefecthq/prefect:latest-python3.8 -- python --version
Python 3.8.11
👍 1
s
Ah ok, we found that changing to prefecthq/prefect:latest-python3.8 in Dockerfile resolved our issues caused by Python version mismatched between build server and Prefect server