-
Notifications
You must be signed in to change notification settings - Fork 772
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 pip install
failed on Windows: stream did not contain valid UTF-8
#7549
Comments
I'm facing the same issue but with
Windows 10 Pro 22H2 19045.4894 |
peewee
on Windowsuv pip install
failed on Windows: stream did not contain valid UTF-8
In addition to my previous comment. It seems that the problem is actually with
|
This should be fixed by #7757. |
Hey, I have the same error with peewee, still after updating to 0.4.18: |
@DeemanOne Are you sure it is up to date ? What is the output of |
|
Here's the full log with Probably the same issue with #8009 |
## Summary Related issues: #8009 #7549 Although `PYTHONIOENCODING=utf-8` forces python to use UTF-8 for `stdout`/`stderr`, it can't prevent code like `sys.stdout.buffer.write()` or `subprocess.call(["cl.exe", ...])` to bypass the encoder. This PR uses lossy UTF-8 conversion to avoid decoding error. ## Alternative Using `bstr` crate might be better since it can preserve original information. Or we should follow the Windows convention, unset `PYTHONIOENCODING` and decode with system default encoding. ## Test Plan Running locally with non-ASCII character in `UV_CACHE_DIR` works fine, but I have no unit test plan. Testing locale problem is hard :(
still cannot install peewee with 0.4.20:
|
uv v0.4.21 works on my side. Thanks! |
This issue seems to only happen on Windows.
The command you invoked
The command is
uv pip install peewee
Python is
cp312
if this matters.It can be installed via
pip install peewee
without an issue however.The current uv platform.
Win11 x64 23H2 22631.4169
The current uv version (
uv --version
).uv 0.4.12 (2545bca69 2024-09-18)
The text was updated successfully, but these errors were encountered: