Skip to content

Incompatibility following Google colab upgrade to Python 3.13 #1343

Open

Description

@ahernank

The package doesn't support Python 3.13 yet. With Colab upgrading the runtime default environment, it is not possible to correctly import the latest version of malariagen_data. We need to upgrade the Python version on our end, but while we navigate this, as a workaround, the runtime version can be updated manually in Google Colab.

To do this, go to "Runtime" -> "Change runtime type" -> "Runtime version" -- In the drop-down menu, select "2026.07"; this will default to using Python 3.12.13 in your session and you will be able to import the latest version of malariagen_data as normal. There is a screnshoot attached below of the option that will need updating.

Image

Alternatively, you can install Python 3.12 (or below) directly in your runtime. Please note this might cause incompatibilities with other external packages.

Activity

  1. added
    bug
    and removed on Aug 24, 2026
  2. harbi811 commented on Aug 24, 2026

    @harbi811
    Contributor

    I thought I should add to this issue, using an old version of the runtime, Colab initially connects and runs properly. However, after a short period of use the frontend fails to connect to the kernel.

    I get HTTP 500 error request. I short version of the error message is pasted below

    Error
    Failed to execute cell. Could not send execute message to runtime: FetchError: Could not fetch resource at https://8080-m-s-kkb-usw4a1-5ul19fizt8va-a.us-west4-1.prod.colab.dev/api/kernelspecs?backend_version=next&authuser=0&colab-runtime-proxy-token=eyJhbGciOiJFUzI1NiIsICJraWQiOiI4Q3NZTWcifQ.eyJhdWQiOiJtLXMta2tiLXVzdzRhMS01dWwxOWZpenQ4dmEiLCAiZXhwIjoxNzg3NTg0OTY3LCAicG9ydCI6ODA4MH0.e6VkY8Ri3BMvPnFTb9wv81pDt5lU3Cb-G4mGdZugy8g0npfqv1xZiXY6XrFrYTBSahLC6sb6_bit-JtmGk0Pww: 500
    

    The session is unrecoverable without disconnecting and deleting the runtime

  3. jonbrenas commented on Sep 1, 2026

    @jonbrenas
    Collaborator

    Please correct me if I misunderstand what you are saying @harbi811 but it sounds like what you are saying is that if you were using a runtime that was created before the Colab update to Python 3.13, everything would work fine until a point when Colab would realise that the runtime is obsolete and disconnect from the kernel. Do you have a way to reproduce the issue?

  4. harbi811 commented on Sep 9, 2026

    @harbi811
    Contributor

    Yes @jonbrenas apologies for the late response, this is what I mean, choosing an older version of the runtime say 2026.07 disconnects after about an hour. It is probably a Colab issue because there are multiple issues with the same error code on the Colab repo. The error itself is unhelpful and I am unable to reproduce it. My apologies, I raised it here

  5. jonbrenas commented on Sep 9, 2026

    @jonbrenas
    Collaborator

    Thanks, @harbi811. We need to know what kind of errors users will see and most are not going to (know how to) report it, so you were very helpful in raising it here.

  6. AE-ZF commented on Sep 13, 2026

    @AE-ZF

    Hi, I tried to run PCA analyses on Colab by changing the runtime as recommended. Initially, it worked fine, but the session consistently fails before completing the analyses, responding with "Runtime disconnected". I retried multiple times, even with smaller sample sizes, but the analyses still do not complete.

    Is there anything we should do to fix this?

  7. jonbrenas commented on Sep 13, 2026

    @jonbrenas
    Collaborator

    Thanks, @AE-ZF. Could you share a notebook with the failing code? I suspect that has more to do with the PCA being hungry than an issue with the runtime's setup.

  8. AE-ZF commented on Sep 13, 2026

    @AE-ZF

    Thanks, @jonbrenas, for the prompt response. Here is my notebook.
    Ethiopia_PCA.ipynb

  9. jonbrenas commented on Sep 13, 2026

    @jonbrenas
    Collaborator

    Thanks! I am going to investigate: the runtime disconnects after exactly 5 minutes of execution without an error message, despite not being out of resources and long before idleness should kick in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughigh priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions