-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Labels
Comments
Install and search use different endpoints. Install should use /simple/ while search uses /pypi.
…Sent from my iPhone
On Feb 27, 2018, at 12:54 AM, Sumana Harihareswara ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Also relevant here: #395. |
Looks like this is now fixed. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Description:
We should, in the
pip search
documentation andpip install
documentation, remind people that the alternate index URL for the new PyPI is https://pypi.org/pypi .pip search
orpip3 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 withpip 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 thepip
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:
The text was updated successfully, but these errors were encountered: