Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 7 tasks
Kreijstal opened this issue Jun 6, 2024 · 8 comments
Open
3 of 7 tasks

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

Kreijstal opened this issue Jun 6, 2024 · 8 comments
Labels
bug python reported-upstream Issues reported or fixed in upstream repository

Comments

@Kreijstal
Copy link
Contributor

Description / Steps to reproduce the issue

  • install uv:p
  • uv pip install x
  • get error

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

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

n/a

@Kreijstal Kreijstal added the bug label Jun 6, 2024
@ognevny
Copy link
Collaborator

ognevny commented Jun 6, 2024

uv is not provided for MINGW64 environment

@Kreijstal
Copy link
Contributor Author

Kreijstal commented Jun 6, 2024

uv is not provided for MINGW64 environment

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

@Kreijstal Kreijstal changed the title uv can't find /mingw64/bin/python uv can't find /ucert64/bin/python Jun 6, 2024
@Kreijstal Kreijstal changed the title uv can't find /ucert64/bin/python uv can't find /ucrt64/bin/python Jun 6, 2024
@ognevny
Copy link
Collaborator

ognevny commented Jun 6, 2024

I'll try to reproduce tomorrow

@ognevny
Copy link
Collaborator

ognevny commented Jun 7, 2024

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
Copy link
Contributor Author

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
Copy link
Collaborator

ognevny commented Jun 7, 2024

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
Copy link
Collaborator

ognevny commented Jun 12, 2024

astral-sh/uv#3573

@Biswa96 Biswa96 added reported-upstream Issues reported or fixed in upstream repository python labels Aug 30, 2024
@ArchGuyWu
Copy link
Contributor

ArchGuyWu commented Sep 10, 2024

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?

Just due to the bin path in windows is scripts, not bin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug python reported-upstream Issues reported or fixed in upstream repository
Projects
None yet
Development

No branches or pull requests

4 participants