-
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 - ValueError exception on improperly formatted package #8654
Labels
kind: crash
For situations where pip crashes
Comments
triage-new-issues
bot
added
the
S: needs triage
Issues/PRs that need to be triaged
label
Jul 29, 2020
cjp256
pushed a commit
to canonical/snapcraft
that referenced
this issue
Jul 29, 2020
Currently python3-apt package is not installable with pip without a patch. Switch to the stage-package, which has the benefit of matching the base (and up-to-date). pypa/pip#8654 Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
4 tasks
cjp256
pushed a commit
to canonical/snapcraft
that referenced
this issue
Jul 29, 2020
Currently python3-apt package is not installable with pip without a patch. Switch to the stage-package, which has the benefit of matching the base (and up-to-date). pypa/pip#8654 Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
cjp256
pushed a commit
to canonical/snapcraft
that referenced
this issue
Jul 29, 2020
Currently python3-apt package is not installable with pip without a patch. Switch to the stage-package, which has the benefit of matching the base (and up-to-date). pypa/pip#8654 Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
cjp256
pushed a commit
to canonical/snapcraft
that referenced
this issue
Jul 29, 2020
Currently python3-apt package is not installable with pip without a patch. Switch to the stage-package, which has the benefit of matching the base (and up-to-date). pypa/pip#8654 Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
cjp256
pushed a commit
to canonical/snapcraft
that referenced
this issue
Jul 29, 2020
Currently python3-apt package is not installable with pip without a patch. Switch to the stage-package, which has the benefit of matching the base (and up-to-date). pypa/pip#8654 Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
To add to the reproduction instructions:
which results in
|
triage-new-issues
bot
removed
the
S: needs triage
Issues/PRs that need to be triaged
label
Jul 29, 2020
cjp256
pushed a commit
to canonical/snapcraft
that referenced
this issue
Jul 30, 2020
Currently python3-apt package is not installable with pip without a patch. Switch to the stage-package, which has the benefit of matching the base (and up-to-date). pypa/pip#8654 Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
bors bot
referenced
this issue
in duckinator/emanate
Aug 5, 2020
158: Update pip to 20.2.1 r=duckinator a=pyup-bot This PR updates [pip](https://pypi.org/project/pip) from **20.2** to **20.2.1**. <details> <summary>Changelog</summary> ### 20.2.1 ``` =================== Features -------- - Ignore require-virtualenv in ``pip list`` (`8603 <https://github.com/pypa/pip/issues/8603>`_) Bug Fixes --------- - Correctly find already-installed distributions with dot (``.``) in the name and uninstall them when needed. (`8645 <https://github.com/pypa/pip/issues/8645>`_) - Trace a better error message on installation failure due to invalid ``.data`` files in wheels. (`8654 <https://github.com/pypa/pip/issues/8654>`_) - Fix SVN version detection for alternative SVN distributions. (`8665 <https://github.com/pypa/pip/issues/8665>`_) - New resolver: Correctly include the base package when specified with extras in ``--no-deps`` mode. (`8677 <https://github.com/pypa/pip/issues/8677>`_) - Use UTF-8 to handle ZIP archive entries on Python 2 according to PEP 427, so non-ASCII paths can be resolved as expected. (`8684 <https://github.com/pypa/pip/issues/8684>`_) Improved Documentation ---------------------- - Add details on old resolver deprecation and removal to migration documentation. (`8371 <https://github.com/pypa/pip/issues/8371>`_) - Fix feature flag name in docs. (`8660 <https://github.com/pypa/pip/issues/8660>`_) ``` </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 <github-bot@pyup.io>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment
Description
pip install
now fails to install improperly packaged python project. The project has installed a file to 'purelib', rather than under the 'purelib' directory. While the broken project needs to be fixed, pip is now throwing an exception without a hint.This change in behavior is from #8562 (#8562 (comment)).
Expected behavior
Prior to 20.2, pip install worked fine. The purelib file was not required and was seemingly ignored.
How to Reproduce
Using Ubuntu 18.04:
pip install -v http://archive.ubuntu.com/ubuntu/pool/main/p/python-apt/python-apt_1.6.5ubuntu0.2.tar.xz
Output
In this case, normed_path is
python_apt-0.0.0.data/purelib
, and points to a file (not a directory).The text was updated successfully, but these errors were encountered: