-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Corrupt .pth in site-packages #11671
Comments
I was having a possibly similar / possibly related issue on a colleague's computer. On Windows, we are seeing the following error:
In similar issues, people recommend But that didn't work when we tried it. I am using the following to install a
I'm not sure if this is because of the same issue as the OP. I can open a new issue if this happens again. One thing to note is that I've only seen this on a Windows 11 machine. |
I performed the following steps to try to reproduce on arm64 windows 11, uv 0.6.1 (unsuccessfully, everything worked fine for me):
It seems like an encoding mess but I can't tell what it would be... out of curiosity what's the windows Version in System Information? (Wondering if it's a really old win10 that lacks some system utf8 support...) |
I'm running win10 22h2 on an x86-64 platform. |
Thanks! That indeed should be well supported. (Which unfortunately means I'm not sure what could cause this...) |
I tried reproducing on Windows 10 22H2 inside a Powershell terminal window and couldn't reproduce:
|
Summary
I have this pyproject.toml file defining my environement :
pyproject.toml.txt
When I run uv sync the venv gets created without problems, but if I look in /.venv/Lib/site-packages I have some .pth files that are visibly corrupt:
distutils-precedence.pth.txt
pytest-cov.pth.txt
These corrupt files cause concern afterwards when running python scripts within the environement:
As a consequence the virtual environment is unusable.
Platform
Windows 10
Version
0.6.1
Python version
3.11.9
The text was updated successfully, but these errors were encountered: