Skip to content

maturin develop not working in git bash #3198

Description

@lifr0m

Bug Description

maturin develop gives Warning: Failed to determine python platform when run in git bash, but works in windows command prompt.

Image Image

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?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

  1. Open git bash.
  2. Run mkdir selenia.
  3. Run cd selenia.
  4. Run python -m venv .venv.
  5. Run . ./.venv/Scripts/activate.
  6. Run pip install maturin.
  7. Run maturin init.
  8. 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'.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions