Bug Description
maturin develop gives Warning: Failed to determine python platform when run in git bash, but works in windows command prompt.
Your maturin version (maturin --version)
1.13.3
Your Python version (python -V)
3.14.5
Your pip version (pip -V)
26.1.1
What bindings you're using
pyo3
Does cargo build work?
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Steps to Reproduce
- Open git bash.
- Run
mkdir selenia.
- Run
cd selenia.
- Run
python -m venv .venv.
- Run
. ./.venv/Scripts/activate.
- Run
pip install maturin.
- Run
maturin init.
- Run
maturin develop.
2026-05-24T15:37:01.331468Z INFO develop_cmd:into_build_context: maturin::build_options: close time.busy=600ns time.idle=5.00µs
2026-05-24T15:37:01.331674Z DEBUG develop_cmd:build: maturin::project_layout: Found pyproject.toml in working directory at "C:\\Users\\lifr0m\\Desktop\\selenia\\pyproject.toml"
2026-05-24T15:37:01.331968Z DEBUG develop_cmd:build: maturin::project_layout: Using cargo manifest path from working directory: "C:\\Users\\lifr0m\\Desktop\\selenia\\Cargo.toml"
2026-05-24T15:37:01.332200Z DEBUG develop_cmd:build:resolve_cargo_metadata: maturin::project_layout: Resolving cargo metadata from "C:\\Users\\lifr0m\\Desktop\\selenia\\Cargo.toml"
2026-05-24T15:37:01.386346Z INFO develop_cmd:build:resolve_cargo_metadata: maturin::project_layout: close time.busy=54.1ms time.idle=400ns
2026-05-24T15:37:01.387177Z DEBUG develop_cmd:build: maturin::project_layout: Project layout resolved project_root=C:\Users\lifr0m\Desktop\selenia python_dir=C:\Users\lifr0m\Desktop\selenia rust_module=C:\Users\lifr0m\Desktop\selenia\selenia python_module=Some("C:\\Users\\lifr0m\\Desktop\\selenia\\selenia") extension_name=selenia module_name=selenia
⚠️ Warning: Failed to determine python platform
⚠️ Warning: Failed to determine python platform
2026-05-24T15:37:01.544533Z INFO develop_cmd:build:check_executable: maturin::python_interpreter::discovery: close time.busy=118ms time.idle=1.00µs executable=/c/Users/lifr0m/Desktop/selenia/.venv\python.exe
⚠️ Warning: Skipping '/c/Users/lifr0m/Desktop/selenia/.venv\python.exe': could not determine version from interpreter name 'python.exe'. Specify a version like 'python.exe3.11'.
2026-05-24T15:37:01.545153Z INFO develop_cmd:build: maturin::build_context::builder: close time.busy=214ms time.idle=600ns
2026-05-24T15:37:01.545382Z INFO develop_cmd: maturin::commands::develop: close time.busy=282ms time.idle=4.40µs
💥 maturin failed
Caused by: Couldn't find any python interpreters from '/c/Users/lifr0m/Desktop/selenia/.venv\python.exe'.```
Bug Description
maturin developgivesWarning: Failed to determine python platformwhen run in git bash, but works in windows command prompt.Your maturin version (
maturin --version)1.13.3
Your Python version (
python -V)3.14.5
Your pip version (
pip -V)26.1.1
What bindings you're using
pyo3
Does
cargo buildwork?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/)?Steps to Reproduce
mkdir selenia.cd selenia.python -m venv .venv.. ./.venv/Scripts/activate.pip install maturin.maturin init.maturin develop.