https://prefect.io logo
Title
s

Scarlett King

07/06/2021, 4:23 PM
Hi, may I ask what is the version of python image installed by the Prefect server helm chart ?
And can this be changed?
k

Kevin Kho

07/06/2021, 4:27 PM
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

Scarlett King

07/07/2021, 10:22 AM
Hi @Kevin Kho, thank you for your reply. What command should I use to change the image to 3.8?
k

Kevin Kho

07/07/2021, 1:48 PM
You need to edit the
Chart.yaml
file and tag the images appropriately with the
latest-python3.8
s

Scarlett King

07/08/2021, 10:05 AM
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

Kevin Kho

07/09/2021, 1:55 PM
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

Scarlett King

07/12/2021, 3:03 PM
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

Kevin Kho

07/12/2021, 3:12 PM
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

Scarlett King

07/13/2021, 10:19 AM
Hey, so we did this but the python version changed to 3.7.11 instead of 3.8
k

Kevin Kho

07/13/2021, 2:12 PM
Ok asking the team
s

Scarlett King

07/13/2021, 3:40 PM
I think it changed to 3.7.11 because of the recent release
z

Zanie

07/13/2021, 3:44 PM
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.
❯ docker run prefecthq/prefect:latest-python3.8 -- python --version
Python 3.8.11
👍 1
s

Scarlett King

07/15/2021, 10:28 AM
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