s

    Scarlett King

    1 year ago
    Hi, may I ask what is the version of python image installed by the Prefect server helm chart ?
    And can this be changed?
    Kevin Kho

    Kevin Kho

    1 year ago
    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

    1 year ago
    Hi @Kevin Kho, thank you for your reply. What command should I use to change the image to 3.8?
    Kevin Kho

    Kevin Kho

    1 year ago
    You need to edit the
    Chart.yaml
    file and tag the images appropriately with the
    latest-python3.8
    s

    Scarlett King

    1 year ago
    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
    Kevin Kho

    Kevin Kho

    1 year ago
    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

    1 year ago
    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?
    Kevin Kho

    Kevin Kho

    1 year ago
    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

    1 year ago
    Hey, so we did this but the python version changed to 3.7.11 instead of 3.8
    Kevin Kho

    Kevin Kho

    1 year ago
    Ok asking the team
    s

    Scarlett King

    1 year ago
    I think it changed to 3.7.11 because of the recent release
    Michael Adkins

    Michael Adkins

    1 year ago
    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
    s

    Scarlett King

    1 year ago
    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