msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.21k stars 1.19k forks source link

uv can't find /ucrt64/bin/python #21091

Open Kreijstal opened 1 month ago

Kreijstal commented 1 month ago

Description / Steps to reproduce the issue

Expected behavior

It should install

Actual behavior

It does not find python even though it is installed

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

Are you willing to submit a PR?

n/a

ognevny commented 1 month ago

uv is not provided for MINGW64 environment

Kreijstal commented 1 month ago

uv is not provided for MINGW64 environment

it does not find /ucrt64/bin/python either, report is not invalid

ognevny commented 1 month ago

I'll try to reproduce tomorrow

ognevny commented 1 month ago

according to uv's documentation, you need to create a virtual env first. but I get this message with python path set

uv venv --python=/ucrt64/bin/python.exe
  x Querying Python at C:/msys64/ucrt64/bin/python.exe failed with exit status exit code: 1
  | --- stdout:

  | --- stderr:
  | Traceback (most recent call last):
  |   File "<string>", line 1, in <module>
  | ModuleNotFoundError: No module named 'python'
  | ---

even when I tried to create venv with python -m venv, I still get the same error. feel free to open an issue upstream

Kreijstal commented 1 month ago

according to uv's documentation, you need to create a virtual env first. but I get this message with python path set

uv venv --python=/ucrt64/bin/python.exe
  x Querying Python at C:/msys64/ucrt64/bin/python.exe failed with exit status exit code: 1
  | --- stdout:

  | --- stderr:
  | Traceback (most recent call last):
  |   File "<string>", line 1, in <module>
  | ModuleNotFoundError: No module named 'python'
  | ---

even when I tried to create venv with python -m venv, I still get the same error. feel free to open an issue upstream

Dont know why the package is there if it is broken, but ok. Also upstream probably only cares about msvc

ognevny commented 1 month ago

Dont know why the package is there if it is broken, but ok. Also upstream probably only cares about msvc

I didn't test the package as I'm not a python developer. how did you understand that it cares only about msvc?

ognevny commented 3 weeks ago

https://github.com/astral-sh/uv/issues/3573