Skip to content
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

Add Warehouse base URL for index option documentation for install, search #5042

Closed
brainwane opened this issue Feb 27, 2018 · 4 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation type: docs Documentation related

Comments

@brainwane
Copy link
Contributor

  • Pip version: 9.0.1
  • Python version: 3.6.4
  • Operating system: Debian Linux 9.3 (stretch)

Description:

We should, in the pip search documentation and pip install documentation, remind people that the alternate index URL for the new PyPI is https://pypi.org/pypi .

pip search or pip3 search, when given the -i argument to search pypi.org, seek out https://pypi.org/RPC2 , which does not exist. I presume something similar happens with pip install -i https://pypi.org, which fails with "No matching distribution found".

As we move into the next few phases of Warehouse development, we'll be advising testers to try pip install-ing from the new PyPI; it'll help if the right URL is provided in the pip docs, where people will look when they're trying to figure out how to retrieve packages and search information from the new site.

What I've run:

$ pip3 search beautifulsoup4
beautifulsoup4-slurp (0.0.2)  - Slurp packages Beautifulsoup4 into command line.
beautifulsoup4 (4.6.0)        - Screen-scraping library
parse-helper (0.1.16)         - Helpers to fetch & parse text on pages with requests, lxml, &
                                beautifulsoup4
soup_helpers (0.0.8)          - A simple set of BeautifulSoup4 unit test helpers

$ pip3 search -i https://pypi.org beautifulsoup4
HTTP error 404 while getting https://pypi.org/RPC2
Exception:
Traceback (most recent call last):
  File "/home/sumanah/.virtualenvs/PyPA/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/sumanah/.virtualenvs/PyPA/lib/python3.6/site-packages/pip/commands/search.py", line 45, in run
    pypi_hits = self.search(query, options)
  File "/home/sumanah/.virtualenvs/PyPA/lib/python3.6/site-packages/pip/commands/search.py", line 62, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python3.6/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/home/sumanah/.virtualenvs/PyPA/lib/python3.6/site-packages/pip/download.py", line 776, in request
    response.raise_for_status()
  File "/home/sumanah/.virtualenvs/PyPA/lib/python3.6/site-packages/pip/_vendor/requests/models.py", line 862, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
pip._vendor.requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/RPC2


$ pip3 search -i https://pypi.org/pypi beautifulsoup4
beautifulsoup4-slurp (0.0.1)  - Slurp packages Beautifulsoup4 into command line.
beautifulsoup4 (4.0.1)        - Screen-scraping library
soup_helpers (0.0.1)          - A simple set of BeautifulSoup4 unit test helpers
parse-helper (0.1.0)          - Helpers to fetch & parse text on pages with requests, lxml, &
                                beautifulsoup4

$ pip3 install -i https://pypi.org wrapt
Collecting wrapt
  Could not find a version that satisfies the requirement wrapt (from versions: )
No matching distribution found for wrapt

$ pip3 install -i https://pypi.org/pypi wrapt
Collecting wrapt
  Downloading https://files.pythonhosted.org/packages/a0/47/66897906448185fcb77fc3c2b1bc20ed0ecca81a0f2f88eda3fc5a34fc3d/wrapt-1.10.11.tar.gz
Building wheels for collected packages: wrapt
  Running setup.py bdist_wheel for wrapt ... done
  Stored in directory: /home/sumanah/.cache/pip/wheels/a8/93/3b/02e7c5bab4d79e23821eff820a9e0a843db819625982152fb4
Successfully built wrapt
Installing collected packages: wrapt
Successfully installed wrapt-1.10.11

@dstufft
Copy link
Member

dstufft commented Feb 27, 2018 via email

@pradyunsg
Copy link
Member

Also relevant here: #395.

@pradyunsg pradyunsg added the type: docs Documentation related label Mar 5, 2018
@brainwane
Copy link
Contributor Author

Looks like this is now fixed.

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: docs Documentation related
Projects
None yet
Development

No branches or pull requests

3 participants