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

OSX build fails (TLS version error) #63

Closed
TheBB opened this issue Apr 24, 2018 · 11 comments
Closed

OSX build fails (TLS version error) #63

TheBB opened this issue Apr 24, 2018 · 11 comments

Comments

@TheBB
Copy link

TheBB commented Apr 24, 2018

Hi,

I tried following the instructions here, which work fine for Linux, but seem to fail on OSX. Example: https://travis-ci.org/sintefmath/Splipy/jobs/370590848

This seems related to #57 which claims to be fixed, so I am sure I'm just doing something wrong here.

.travis.yml file is

language: python

matrix:
  include:
    - sudo: required
      services:
        - docker
      env:
        - PIP=pip
        - CIBW_SKIP="cp27-* cp33-*"
    - os: osx
      language: generic
      env:
        - PIP=pip2
        - CIBW_SKIP="cp27-* cp33-*"

script:
  - $PIP install cibuildwheel==0.7.1
  - cibuildwheel --output-dir wheelhouse
@YannickJadoul
Copy link
Member

I do not really see what's going wrong here. Could you maybe try running it again, to see if it wasn't a weird non-reproducible error? - Probably not, but fingers crossed.

Otherwise, I'll have a look at that minimal example, because I have the feeling that it could/should be made simpler anyway...

@mayeut
Copy link
Member

mayeut commented Apr 29, 2018

This seems to be a setuptools issue rather than pip issue which was corrected with #57
c.f. pypa/setuptools#1320

You can try to install your dependencies using pip before building the wheel (using CIBW_BEFORE_BUILD environment variable)

@YannickJadoul
Copy link
Member

@TheBB Does this then mean the issue is fixed, given @mayeut's comment?

@TheBB
Copy link
Author

TheBB commented Apr 30, 2018

Sorry, I wasn't able to test it yet. I'll close this for now assuming the fix is good. Thanks everyone.

@TheBB TheBB closed this as completed Apr 30, 2018
@YannickJadoul
Copy link
Member

Thanks! Feel free to re-open if necessary.

@joerick
Copy link
Contributor

joerick commented Apr 30, 2018

btw @TheBB, CIBW_BEFORE_BUILD={pip} install . is quite common - setuptools installing the setup_requires dependencies is pretty unreliable these days.

@mayeut
Copy link
Member

mayeut commented May 2, 2018

setuptools is not updated by cibuildwheel and the version installed with python 3.4 on macOS is quite old... Shall cibuildwheel install an up-to-date version of setuptools ? (manylinux images are up-to-date, don't know about windows on AppVeyor)

@YannickJadoul
Copy link
Member

Hmmm, maybe we should do that. After all, we're also updating pip and installing wheel...

@YannickJadoul YannickJadoul reopened this May 3, 2018
@JorjMcKie
Copy link

Similar, but maybe unrelated:

�[0K$ cibuildwheel --output-dir wheelhouse

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed


  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
 46 21.4M   46 10.0M    0     0  4808k      0  0:00:04  0:00:02  0:00:02 4807k
100 21.4M  100 21.4M    0     0  9908k      0  0:00:02  0:00:02 --:--:-- 9905k

installer: Package name is Python

installer: Installing at base path /

installer: The install was successful.

/Library/Frameworks/Python.framework/Versions/2.7/bin/python2

Python 2.7.13

Requirement already up-to-date: setuptools in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)

Collecting wheel

  Could not fetch URL https://pypi.python.org/simple/wheel/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping

  Could not find a version that satisfies the requirement wheel (from versions: )

No matching distribution found for wheel

I am now going to try excluding Python versions below 3 altogether ...

@mayeut
Copy link
Member

mayeut commented May 3, 2018

@JorjMcKie , it's unrelated to this specific issue and has been addressed in #57. You should upgrade cibuildwheel to get a proper installation of pip on macOS

@joerick
Copy link
Contributor

joerick commented Jun 18, 2018

Fixed in #71, released in 0.9.1!

@joerick joerick closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants