edgedb icon indicating copy to clipboard operation
edgedb copied to clipboard

Bug with the gel-py command on Windows 11

Open rollaroll opened this issue 2 months ago • 2 comments

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

rollaroll avatar Nov 06 '25 13:11 rollaroll

I tested connecting to the gel cloud while initializing the project on the Windows system and consistently received the error message: "Failed to connect to EdgeDB instance: Found gel.toml but the project is not initialized. Run gel project init." Then, I conducted tests on the Ubuntu system and found that the gel-py command could be executed normally. It appears that this is an issue specific to the Windows system, but I'm still uncertain about whether the problem is caused by the gel CLI or gel-python.

rollaroll avatar Nov 07 '25 08:11 rollaroll

This is likely due to this known issue: https://github.com/geldata/gel-cli/issues/1742

nerdoza avatar Nov 26 '25 05:11 nerdoza