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

Install setuptools for python on mac #91

Closed
ghost opened this issue Oct 18, 2013 · 2 comments
Closed

Install setuptools for python on mac #91

ghost opened this issue Oct 18, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2013

Originally reported by: Anonymous


Hi,
I need easy_install to install a package on python2.7. I'm using mac10.6, my version of python is the framework 2.7
this is what I get when I try :

python ez_setup.py

Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.6.tar.gz
Traceback (most recent call last):
  File "ez_setup.py", line 370, in <module>
    sys.exit(main())
  File "ez_setup.py", line 366, in main
    downloader_factory=options.downloader_factory)
  File "ez_setup.py", line 278, in download_setuptools
    downloader(url, saveto)
  File "ez_setup.py", line 185, in download_file_curl
    subprocess.check_call(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['curl', 'https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.6.tar.gz', '--silent', '--output', '/Users/cblin/Downloads/setuptools-1.1.6.tar.gz']' returned non-zero exit status 7

Thank you for your help


@ghost
Copy link
Author

ghost commented Oct 20, 2013

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


You have two options here:

  1. Track down the cause of curl failing with exit code 7. To do that, run the command indicated in the error message but without --silent:

    curl https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.6.tar.gz --output /Users/cblin/Downloads/setuptools-1.1.6.tar.gz

    Theoretically, that will output an error message indicating the source of the error.

  2. Bypass use of curl by passing --insecure to ez_setup.py. I don't recommend this technique because it does open the possibility of malicious manipulation of the tool, but if you're willing to accept the risk, then it will use the internal downloaders which are less secure but as a result, less likely to fail.

If you do go with (1), please post your findings here for our consideration and for others to compare. If the curl error message indicates something wrong with the use of curl, then please open another ticket.

@ghost
Copy link
Author

ghost commented Oct 21, 2013

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


Thank you for your answer.
I tried option 1 and get "curl : couldn't connect to host"
It appeared that curl is blocked in my lab. I used the 2nd option and it was successful.
Thanks a lot

@ghost ghost added major bug labels Mar 29, 2016
@ghost ghost closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Dec 29, 2021
sysconfig: use get_config_h_filename() from the stdlib
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