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

ez_setup.py fails because of insecure SSL connection #106

Closed
ghost opened this issue Nov 14, 2013 · 3 comments
Closed

ez_setup.py fails because of insecure SSL connection #106

ghost opened this issue Nov 14, 2013 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2013

Originally reported by: chris_zen (Bitbucket: chris_zen, GitHub: Unknown)


When running

#!bash
$ python ez_setup.py 

I get the following error:

Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-1.3.2.tar.gz
Traceback (most recent call last):
  File "ez_setup.py", line 382, in <module>
    sys.exit(main())
  File "ez_setup.py", line 378, in main
    downloader_factory=options.downloader_factory)
  File "ez_setup.py", line 290, in download_setuptools
    downloader(url, saveto)
  File "ez_setup.py", line 215, in download_file_wget
    _clean_check(cmd, target)
  File "ez_setup.py", line 160, in _clean_check
    subprocess.check_call(cmd)
  File "/usr/local/python/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['wget', 'https://pypi.python.org/packages/source/s/setuptools/setuptools-1.3.2.tar.gz', '--quiet', '--output-document', '/home/bgadmin/setuptools-1.3.2.tar.gz']' returned non-zero exit status 1

If I try the wget command by myself:

#!bash
$ wget https://pypi.python.org/packages/source/s/setuptools/setuptools-1.3.2.tar.gz
--2013-11-14 16:33:18--  https://pypi.python.org/packages/source/s/setuptools/setuptools-1.3.2.tar.gz
Resolving pypi.python.org... 185.31.16.185, 185.31.16.184
Connecting to pypi.python.org|185.31.16.185|:443... connected.
ERROR: certificate common name `*.a.ssl.fastly.net' doesn't match requested host name `pypi.python.org'.
To connect to pypi.python.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

@ghost
Copy link
Author

ghost commented Nov 14, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Duplicate of #75.

@ghost
Copy link
Author

ghost commented Nov 14, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Please report and elaborate if the --insecure option doesn't suit your needs.

@ghost
Copy link
Author

ghost commented Nov 15, 2013

Original comment by chris_zen (Bitbucket: chris_zen, GitHub: Unknown):


Sorry for the duplicate, I didn't see it, --insecure is perfect. I would like to suggest you to put a note on this in the README.txt. Thank you very much.

@ghost ghost closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Jan 22, 2022
[maint] removed unneded exception inclusion
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants