-
Notifications
You must be signed in to change notification settings - Fork 959
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
Group Policy Blocks UV Tool from Accessing Python Interpreter #6584
Comments
Do you happen to know what is the group policy in effect (e.g. is it a built-in to gpedit.exe) and how it's configured? I could tinker with |
@samypr100 thank you for the quick response. Unfortunately, I don't know any of the inner details of the policy. What I do know is that is seems that executables can not be executed when they are stored in |
Maybe the policy only allows certain locations for executables? The best bet is to look at the policy yourself e.g. via command prompt running something like |
I have the same issue and you're correct. If, for example, uv created the environments in
@zanieb is this the expected behavior once |
@contang0 I couldn't reproduce that on my machine
|
It seems like this is a Windows-specific issue. |
While I agree for the policy part, that doesn't make sense for the |
I upgraded to the latest version (0.4.4) and now I see slightly different things. Looks like I misunderstood how
|
Thanks! I cannot fully understand the output, but can understand that the policy is blocking executables on certain drives and certain locations. The easiest solution for me, currently, is to constraint new projects that are initialized with |
Description:
I am encountering a persistent issue with the UV tool where it fails to access the Python interpreter due to a group policy restriction. This problem occurs not only when adding packages but also when running scripts.
Error Details:
Command:
uv add faker
anduv run src/uv_prj/__init__.py
Error Message:
Steps to Reproduce:
uv
.uv add faker
.uv run src/uv_prj/__init__.py
.Expected Behavior:
The UV tool should be able to add packages and run scripts without encountering errors related to the Python interpreter.
Actual Behavior:
Both operations fail with an error indicating that the Python interpreter is blocked by group policy.
Environment:
C:\Users\aarabil\Desktop\quick_runs\uv_prj\.venv\
Additional Information:
The error suggests that the group policy settings on the system are preventing the UV tool from accessing the Python interpreter. I am wondering how others deal with this issue within a corporate environment?
The text was updated successfully, but these errors were encountered: