Skip to content

Issue with gql==4.0.0 in the python sdk #10885

Description

@fcs-vtl

Hello,

We have started seeing this issue when using the python sdk (as an app, not a dagger module):

dagger.ClientConnectionError: Failed to establish client connection to the Dagger session: Failed to build schema from introspection query: Unknown argument "includeDeprecated" on field "__Field.args".

I believe it is due to a recent release in the gql python library.

I have forced the version of gql to 3.5.3 and that has resolved our issue, since the below is allowing any version >=3.5.0.

"gql[httpx]>=3.5.0",

I think it would be good practice to lock the dependencies in these files to at least the major version.

Thanks,

Activity

  1. changed the title [-]Issue with `gql` library started recently[/-] [+]Issue with `gql==4.0.0` python library[/+] on Aug 17, 2025
  2. changed the title [-]Issue with `gql==4.0.0` python library[/-] [+]Issue with `gql==4.0.0` in the python sdk[/+] on Aug 17, 2025
  3. klazuka commented on Aug 17, 2025

    @klazuka

    I came here to report the same error. You can repro by following the steps for the "build a CI pipeline" tutorial

    Repro:

    git clone https://github.com/dagger/hello-dagger-template.git
    cd hello-dagger-template
    dagger init --sdk=python --name=hello-dagger
    dagger functions
    

    ^ it crashes when trying to load modules in dagger functions

    Error:

    ClientConnectionError: Failed to establish client connection to the Dagger                                                    
    session: Failed to build schema from introspection query: Unknown argument                                                    
    "includeDeprecated" on field "__Field.args".                                                                                  
    ! failed to call module "hello-dagger" to get functions: process "/runtime" did not complete successfully: exit code: 1
    Error: failed to serve module: input: moduleSource.asModule failed to call module "hello-dagger" to get functions: process "/runtime" did not complete successfully: exit code: 1
    
  4. filip-be commented on Aug 18, 2025

    @filip-be

    +1, it has started failing today :(
    I can see in the logs that running uv sync resolves latest gql which is 4.0.0, while last week it was still 3.5.0:

    Today:
    Image

    Last week:
    Image

  5. self-assigned this
    on Aug 18, 2025
  6. jedevc commented on Aug 18, 2025

    @jedevc
    Contributor

    Thanks for the quick reports y'all 💛

    So, this seems to "only" affect newly inited dagger modules (and standalone apps, though if using a lockfile, it shouldn't affect you unless you attempt to update dependencies).

    A quick workaround is to update the version specified using uv add "gql~=3.5.3" (which includes up to, but not including 4.0.0).

    This is still a critical issue IMO, I'm aiming to a release later today with appropriate fixes! 🎉

  7. added this to the v0.18.15 milestone on Aug 18, 2025
  8. helderco commented on Sep 3, 2025

    @helderco
    Contributor

    Heads up if you constrained the gql version in your modules. From 0.18.15+ it's best to remove the constraint otherwise it will break in 0.18.17 (upcoming):

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions