Space Build ERROR: Could not find a version that satisfies the requirement gradio==5.12.0

Hello! I pushed changes to my space and got the following errors:

ERROR: Could not find a version that satisfies the requirement gradio==5.12.0 (from versions: 0.1.0, 0.1.1, ..., 4.43.0, 4.44.0, 4.44.1)
ERROR: No matching distribution found for gradio==5.12.0

--> ERROR: process "/bin/sh -c pip install --no-cache-dir \tgradio[oauth]==5.12.0 \t\"uvicorn>=0.14.0\" \tspaces" did not complete successfully: exit code: 1

I have a requirements.txt file in my root directory with the following:

gradio[oauth]==5.12.0
uvicorn>=0.14.0
spaces

I also have a runtime.txt file in my root directory with python-3.10.

I have tried restarting the space and also downgrading to a stable version (gradio==4.44.1) and the same error still persists.

I believe the error is being caused because Gradio versions 5.x require python >= 3.10. I have also tried to factory rebuild the space but didn’t solve the error.

Any help is much appreciated!

1 Like

It seems that ini files or so can sometimes cause problems on Windows. But I thought Spaces was on Linux…:thinking: