-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Pip 20.2.1 causes UnicodeDecodeError #8717
Comments
The ticket you linked is a different issue. |
OK, I got this one sorted out. The root cause to the error is that
So this exact error should no longer be a problem once #8702 is merged. But the root exception cause remains, and could still be hit in the future in other situations. @hansoli68 would you be able to check what encoding your We’ll need to have a conversation with CPython maintainers (and perhaps also virtualenv maintainers) to clarify this. |
It seems like venv has always used UTF-8 without explicitly specifying it anywhere. I’ll file a PR to fix the encoding. |
@uranusjr My |
162: Update pip to 20.2.2 r=duckinator a=pyup-bot This PR updates [pip](https://pypi.org/project/pip) from **20.2.1** to **20.2.2**. <details> <summary>Changelog</summary> ### 20.2.2 ``` =================== Bug Fixes --------- - Only attempt to use the keyring once and if it fails, don't try again. This prevents spamming users with several keyring unlock prompts when they cannot unlock or don't want to do so. (`8090 <https://github.com/pypa/pip/issues/8090>`_) - Fix regression that distributions in system site-packages are not correctly found when a virtual environment is configured with ``system-site-packages`` on. (`8695 <https://github.com/pypa/pip/issues/8695>`_) - Disable caching for range requests, which causes corrupted wheels when pip tries to obtain metadata using the feature ``fast-deps``. (`8701 <https://github.com/pypa/pip/issues/8701>`_, `8716 <https://github.com/pypa/pip/issues/8716>`_) - Always use UTF-8 to read ``pyvenv.cfg`` to match the built-in ``venv``. (`8717 <https://github.com/pypa/pip/issues/8717>`_) - 2020 Resolver: Correctly handle marker evaluation in constraints and exclude them if their markers do not match the current environment. (`8724 <https://github.com/pypa/pip/issues/8724>`_) ``` </details> <details> <summary>Links</summary> - PyPI: https://pypi.org/project/pip - Changelog: https://pyup.io/changelogs/pip/ - Homepage: https://pip.pypa.io/ </details> Co-authored-by: pyup-bot <[email protected]>
Environment
I using venv environment.
My venv path has multi byte character, hangul, i think it may cause error.
Description
Pip 20.2.1 causes
UnicodeDecodeError
when install some packages. In my case,rope
.But I could downgrade pip to 20.1 using pip. 20.1 has no issue.
There are similar issue. (#8658) But my enviroment is different OS (Win10 vs CentOS) and Python. (3.7 vs 2.7) And traceback is different, too. I think both issues are not same.
Expected behavior
How to Reproduce
rope
Output
The text was updated successfully, but these errors were encountered: