Pip 20.2.1 causes UnicodeDecodeError #8717
I using venv environment.
My venv path has multi byte character, hangul, i think it may cause error.
Pip 20.2.1 causes
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.
How to Reproduce
The text was updated successfully, but these errors were encountered:
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.
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 <firstname.lastname@example.org>