ez_setup.py can not get setuptools
Hi, I don't know what happened recently. Usually I install setuptools by a script using the ez_setup.py script. Recently I get an error: Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-21.0.0.zipTr... (most recent call last): File "downloads/ez_setup.py", line 415, in <module> sys.exit(main()) File "downloads/ez_setup.py", line 411, in main archive = download_setuptools(**_download_args(options)) File "downloads/ez_setup.py", line 336, in download_setuptools downloader(url, saveto) File "downloads/ez_setup.py", line 287, in download_file_insecure src = urlopen(url) File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.4/urllib/request.py", line 469, in open response = meth(req, response) File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.4/urllib/request.py", line 507, in error return self._call_chain(*args) File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain result = func(*args) File "/usr/lib/python3.4/urllib/request.py", line 587, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp)urllib.error.HTTPError: HTTP Error 404: Not Found For now I can copy the package from an old virtualenv, but I'd appreciate a better solution/advise. ThanksZoltan
ez_setup.py is pretty darn old. Any reason you can't: python -m pip install setuptools ? -CHB On Fri, May 6, 2016 at 12:11 AM, Benedek Zoltan via Distutils-SIG < distutils-sig@python.org> wrote:
Hi,
I don't know what happened recently. Usually I install setuptools by a script using the ez_setup.py script.
Recently I get an error:
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-21.0.0.zip Traceback (most recent call last): File "downloads/ez_setup.py", line 415, in <module> sys.exit(main()) File "downloads/ez_setup.py", line 411, in main archive = download_setuptools(**_download_args(options)) File "downloads/ez_setup.py", line 336, in download_setuptools downloader(url, saveto) File "downloads/ez_setup.py", line 287, in download_file_insecure src = urlopen(url) File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.4/urllib/request.py", line 469, in open response = meth(req, response) File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.4/urllib/request.py", line 507, in error return self._call_chain(*args) File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain result = func(*args) File "/usr/lib/python3.4/urllib/request.py", line 587, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found
For now I can copy the package from an old virtualenv, but I'd appreciate a better solution/advise.
Thanks Zoltan
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
-- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov
If you are using ez_setup in your setup.py, presumably you have guarded against the presence of setuptools in the target environment. If you don’t have setuptools, you don’t have pip. From: Distutils-SIG [mailto:distutils-sig-bounces+tritium-list=sdamon.com@python.org] On Behalf Of Chris Barker Sent: Friday, May 6, 2016 12:17 PM To: Benedek Zoltan <benzolius@yahoo.com> Cc: distutils-sig@python.org Subject: Re: [Distutils] ez_setup.py can not get setuptools ez_setup.py is pretty darn old. Any reason you can't: python -m pip install setuptools ? -CHB On Fri, May 6, 2016 at 12:11 AM, Benedek Zoltan via Distutils-SIG <distutils-sig@python.org <mailto:distutils-sig@python.org> > wrote: Hi, I don't know what happened recently. Usually I install setuptools by a script using the ez_setup.py script. Recently I get an error: Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-21.0.0.zip Traceback (most recent call last): File "downloads/ez_setup.py", line 415, in <module> sys.exit(main()) File "downloads/ez_setup.py", line 411, in main archive = download_setuptools(**_download_args(options)) File "downloads/ez_setup.py", line 336, in download_setuptools downloader(url, saveto) File "downloads/ez_setup.py", line 287, in download_file_insecure src = urlopen(url) File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.4/urllib/request.py", line 469, in open response = meth(req, response) File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.4/urllib/request.py", line 507, in error return self._call_chain(*args) File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain result = func(*args) File "/usr/lib/python3.4/urllib/request.py", line 587, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found For now I can copy the package from an old virtualenv, but I'd appreciate a better solution/advise. Thanks Zoltan _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org <mailto:Distutils-SIG@python.org> https://mail.python.org/mailman/listinfo/distutils-sig -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov <mailto:Chris.Barker@noaa.gov>
On May 6, 2016, at 12:31 PM, tritium-list@sdamon.com wrote:
If you don’t have setuptools, you don’t have pip.
Not true anymore, pip is perfectly capable of running and installing things without setuptools now days. The only time you *need* setuptools installed is if you’re installing from a sdist (and setuptools has wheels, so you can install setuptools with pip withouth setuptools already being installed). ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
Hi, Thanks for all the comments. I tried the get-pip.py script and installs successfully setuptools and pip. Usually I installed virtualenv and setuptools from the install scripts: virtualenv.py, ez_setup.py and pip from pip-*.*.*.tar.gz.I liked this approach, because in this way I didn't affect the system by any of those packages, everything remained in the created virtualenv. Now I have to change only my install script in order to use get-pip.py Best regardsZoltan From: Donald Stufft <donald@stufft.io> To: tritium-list@sdamon.com Cc: Chris Barker <chris.barker@noaa.gov>; Benedek Zoltan <benzolius@yahoo.com>; distutils-sig@python.org Sent: Friday, May 6, 2016 7:43 PM Subject: Re: [Distutils] ez_setup.py can not get setuptools On May 6, 2016, at 12:31 PM, tritium-list@sdamon.com wrote: If you don’t have setuptools, you don’t have pip. Not true anymore, pip is perfectly capable of running and installing things without setuptools now days. The only time you *need* setuptools installed is if you’re installing from a sdist (and setuptools has wheels, so you can install setuptools with pip withouth setuptools already being installed). ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
participants (4)
-
Benedek Zoltan
-
Chris Barker
-
Donald Stufft
-
tritium-list@sdamon.com