Skip to content

UX: Unhelpful error message #8367

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

Closed
nlhkabu opened this issue May 30, 2020 · 3 comments
Closed

UX: Unhelpful error message #8367

nlhkabu opened this issue May 30, 2020 · 3 comments

Comments

@nlhkabu
Copy link
Member

nlhkabu commented May 30, 2020

Environment

  • pip version: 20.2b1
  • Python version: 3.7
  • OS: Fedora

Description
Error message says:

pip can't proceed with requirements 'chat from https://files.pythonhosted.org/packages/f1/87/d34472568360d0ea7c276406fcf0cc129e40fa1439a7c22c8b9aab70f188/chat-1.0.7.dev134.tar.gz#sha256=78e91e98b7b6e0edd6f8ed0d71be6d92d65a00033a3fcd36e61e1128e2980ce1' due to a pre-existing build directory (/tmp/pip-install-itszzazg/chat). This is likely due to a previous installation that failed. pip is being responsible and not assuming it can delete this. Please delete it and try again.

However /tmp/pip-install-itszzazg/chat does not exist, so I can't delete it.

Expected behavior
The error message points me to a folder than exists.

How to Reproduce
pip install notifiers chat checkdmarc trio photon --unstable-feature=resolver

Output

pip install notifiers chat checkdmarc trio photon --unstable-feature=resolver
Requirement already satisfied: notifiers in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (1.2.1)
Requirement already satisfied: checkdmarc in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (4.2.4)
Requirement already satisfied: trio in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (0.15.1)
Requirement already satisfied: photon in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (1.1.8.3)
Requirement already satisfied: requests in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from photon) (2.23.0)
Requirement already satisfied: urllib3 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from photon) (1.25.9)
Requirement already satisfied: tld in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from photon) (0.12.2)
Requirement already satisfied: sniffio in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from trio) (1.1.0)
Requirement already satisfied: sortedcontainers in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from trio) (2.1.0)
Requirement already satisfied: attrs>=19.2.0 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from trio) (19.3.0)
Requirement already satisfied: async-generator>=1.9 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from trio) (1.10)
Requirement already satisfied: outcome in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from trio) (1.0.1)
Requirement already satisfied: idna in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from trio) (2.9)
Requirement already satisfied: rfc3987>=1.3.8 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from notifiers) (1.3.8)
Requirement already satisfied: jsonschema>=3.0.0 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from notifiers) (3.2.0)
Requirement already satisfied: click>=7.0 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from notifiers) (7.1.2)
Requirement already satisfied: certifi>=2017.4.17 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from requests->photon) (2020.4.5.1)
Requirement already satisfied: chardet<4,>=3.0.2 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from requests->photon) (3.0.4)
Requirement already satisfied: importlib-metadata in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from jsonschema>=3.0.0->notifiers) (1.6.0)
Requirement already satisfied: setuptools in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from jsonschema>=3.0.0->notifiers) (47.1.0)
Requirement already satisfied: pyrsistent>=0.14.0 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from jsonschema>=3.0.0->notifiers) (0.16.0)
Requirement already satisfied: six>=1.11.0 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from jsonschema>=3.0.0->notifiers) (1.15.0)
Requirement already satisfied: zipp>=0.5 in /home/nlh/.virtualenvs/breakpip/lib/python3.7/site-packages (from importlib-metadata->jsonschema>=3.0.0->notifiers) (3.1.0)
Collecting chat
  Using cached chat-1.0.7.dev136.tar.gz (5.8 MB)
Collecting chat
ERROR: pip can't proceed with requirements 'chat from https://files.pythonhosted.org/packages/f1/87/d34472568360d0ea7c276406fcf0cc129e40fa1439a7c22c8b9aab70f188/chat-1.0.7.dev134.tar.gz#sha256=78e91e98b7b6e0edd6f8ed0d71be6d92d65a00033a3fcd36e61e1128e2980ce1' due to a pre-existing build directory (/tmp/pip-install-itszzazg/chat). This is likely due to a previous installation that failed. pip is being responsible and not assuming it can delete this. Please delete it and try again.
@ghost ghost added the S: needs triage Issues/PRs that need to be triaged label May 30, 2020
@deveshks
Copy link
Contributor

I notice that the Collecting chat message is being repeated twice in the logs, and the build directory which gets created on the first instance causes the second instance to error out.

I can also reproduce it with another pypa package twine.

$ python --version
Python 3.8.2

$ pip --version
pip 20.2.dev1 from /Users/devesh/pip/src/pip (python 3.8)

$ pip install twine chat --unstable-feature=resolver
Collecting twine
  Using cached twine-3.1.1-py3-none-any.whl (36 kB)
Requirement already satisfied: setuptools>=0.7.0 in ./venv/lib/python3.8/site-packages (from twine) (41.2.0)
Collecting requests-toolbelt!=0.9.0,>=0.8.0
  Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Collecting pkginfo>=1.4.2
  Using cached pkginfo-1.5.0.1-py2.py3-none-any.whl (25 kB)
Collecting requests>=2.20
  Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting chardet<4,>=3.0.2
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<3,>=2.5
  Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Collecting readme-renderer>=21.0
  Using cached readme_renderer-26.0-py2.py3-none-any.whl (15 kB)
Collecting Pygments>=2.5.1
  Using cached Pygments-2.6.1-py3-none-any.whl (914 kB)
Collecting docutils>=0.13.1
  Using cached docutils-0.16-py2.py3-none-any.whl (548 kB)
Collecting bleach>=2.1.0
  Using cached bleach-3.1.5-py2.py3-none-any.whl (151 kB)
Collecting webencodings
  Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting six
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Using cached urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
Collecting keyring>=15.1
  Using cached keyring-21.2.1-py3-none-any.whl (31 kB)
Collecting packaging
  Using cached packaging-20.4-py2.py3-none-any.whl (37 kB)
Collecting pyparsing>=2.0.2
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting tqdm>=4.14
  Using cached tqdm-4.46.0-py2.py3-none-any.whl (63 kB)
Processing ./Library/Caches/pip/wheels/b3/20/34/42f715d81d85299672615dd43afe6b12226a099c3b4e844d80/chat-1.0.7.dev136-py3-none-any.whl
Collecting chat
  Downloading chat-1.0.7.dev134.tar.gz (5.6 MB)
     |████████████████████████████████| 5.6 MB 1.7 MB/s 
Collecting chat
ERROR: pip can't proceed with requirements 'chat from https://files.pythonhosted.org/packages/31/d0/3df912876cfdd5b6ccfb4a2b76356677dea3e3fe0f2dd474d030c0ea9587/chat-1.0.7.dev132.tar.gz#sha256=93a20b968aa74a0d3ade51f71ae67fc47719425d16f5308f45635c7ab004d6f9' due to a pre-existing build directory (/private/var/folders/xg/blp845_s0xn093dyrtgy936h0000gp/T/pip-install-yqi4oqx6/chat). This is likely due to a previous installation that failed. pip is being responsible and not assuming it can delete this. Please delete it and try again.

The only common thread between notifiers and twine is that twine requires requests >= 2.20 and notifiers requires requests>=2.21.0, whereas chat requires requests == 2.12.1

@uranusjr
Copy link
Member

The final error seems to be a consequence of #8294. If it gets pass that, the error message would be similar to #8220 (still not very good).

@nlhkabu
Copy link
Member Author

nlhkabu commented May 31, 2020

Closing this as a duplicate of #8294. Please reopen if needed.

@nlhkabu nlhkabu closed this as completed May 31, 2020
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Feb 12, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants