Skip to content

Bug with the gel-py command on Windows 11 #9117

@rollaroll

Description

@rollaroll

When I use the gel-py command, I get the following error:
Failed to connect to the EdgeDB instance: Found gel.toml but the project is not initialized. Run gel project init.

However, in reality, I have already successfully initialized the project using the gel project init command.
Additionally, I tried testing with different kinds of instances and consistently encountered the above error. The only difference is that for the local type of instance, the status shows as "inactive," while for the remote type of instance deployed using Docker, the status shows as "up."
I attempted to ask the documentation AI but did not receive an answer that could resolve this bug.

  • Gel Version:7.0+501517f(local) / 7.0+4472e7c(docker)
  • Gel CLI Version:7.9.0+ec0fa4d
  • OS Version:windows11

Steps to Reproduce:

1.Create a new project.
2.Initialize the project using the gel project init command.
3.Edit default.gel in the dbschema folder to define some types.
4.Create and write get_users.edgeql following the example in the official documentation — Learn — Tutorials — Build a Search Bot with FastAPI.
5.Execute the gel-py command and encounter the error.

Additionally, attached is the log from when I executed the gel project init command for reference:

No gel.toml (or edgedb.toml) found in E:\LabelMoe\componet_test\gelExperiment\searchbot or above
Initializing new project...
Checking Gel versions...
┌────────────────────────┬────────────────────────────────────────────────────────────┐
│ Project directory │ E:\LabelMoe\componet_test\gelExperiment\searchbot │
│ Project config │ E:\LabelMoe\componet_test\gelExperiment\searchbot\gel.toml │
│ Schema dir (non-empty) │ E:\LabelMoe\componet_test\gelExperiment\searchbot\dbschema │
│ Installation method │ WSL │
│ Version │ 7.0+501517f │
│ Instance name │ searchbot │
│ Branch │ main │
└────────────────────────┴────────────────────────────────────────────────────────────┘
Version 7.0+501517f is already downloaded
Initializing Gel instance 'searchbot'...
[edgedb] CRITICAL 21482 - 2025-11-06T21:15:19.564 postgres: the database system is starting up
Applying migrations...
Applying m1wqgxtmu3gczuwwntqm4t4jbv74v2ulioczp3ti3kcmhuxw55bxma (00001-m1wqgxt.edgeql)
... parsed
... applied
Applying m1373bpsyweolyep2qj4rqeuhctjylrozydjb5wiuow3zccgj7zjrq (00002-m1373bp.edgeql)
... parsed
... applied
Writing gel.local.toml for configuration
Project initialized.
To connect to searchbot, run gel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions