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

First build failed at macOS [pypi certificate] #21123

Closed
marinintim opened this issue Jul 4, 2018 · 5 comments
Closed

First build failed at macOS [pypi certificate] #21123

marinintim opened this issue Jul 4, 2018 · 5 comments
Labels

Comments

@marinintim
Copy link

@marinintim marinintim commented Jul 4, 2018

Hi, I'm trying to build Servo on macOS (High Sierra).

As far as I understand, the issue is not with servo itself, but I want to track this issue there as well (so others could find it more easily)

  17:59:37 as mt on MacBook-Pro-Timofej in ~/Projects/workmate/servo at master
→ ./mach build --dev
"/Users/mt/Projects/workmate/servo/python/_virtualenv/bin/python2.7" "-m" "pip" "install" "-I" "-r" "/Users/mt/Projects/workmate/servo/python/requirements.txt" failed with error code 1:
Output:
Obtaining file:///Users/mt/Projects/workmate/servo/python/tidy (from -r /Users/mt/Projects/workmate/servo/python/requirements.txt (line 35))
Collecting blessings==1.6 (from -r /Users/mt/Projects/workmate/servo/python/requirements.txt (line 4))
  Could not fetch URL https://pypi.org/simple/blessings/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/blessings/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)) - skipping
Error:
From cffi callback <function _verify_callback at 0x10500ff50>:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/blessings/
From cffi callback <function _verify_callback at 0x106c58b90>:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/blessings/
From cffi callback <function _verify_callback at 0x106c58a28>:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/blessings/
From cffi callback <function _verify_callback at 0x106c588c0>:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/blessings/
From cffi callback <function _verify_callback at 0x106c58488>:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/blessings/
From cffi callback <function _verify_callback at 0x1071fa050>:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Could not find a version that satisfies the requirement blessings==1.6 (from -r /Users/mt/Projects/workmate/servo/python/requirements.txt (line 4)) (from versions: )
No matching distribution found for blessings==1.6 (from -r /Users/mt/Projects/workmate/servo/python/requirements.txt (line 4))
(env)
  18:01:22 as mt on MacBook-Pro-Timofej in ~/Projects/workmate/servo at master
→
@CYBAI
Copy link
Collaborator

@CYBAI CYBAI commented Jul 5, 2018

Obtaining file:///Users/mt/Projects/workmate/servo/python/tidy (from -r /Users/mt/Projects/workmate/servo/python/requirements.txt (line 35))
Collecting blessings==1.6 (from -r /Users/mt/Projects/workmate/servo/python/requirements.txt (line 4))
  Could not fetch URL https://pypi.org/simple/blessings/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/blessings/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)) - skipping
Error:

Seems you've already failed to install the pip module due to SSL error.
Could you try to check your OpenSSL version in python ?

python -c "import ssl; print(ssl.OPENSSL_VERSION)"

Ref: pypa/pip#5226 (comment)

@marinintim
Copy link
Author

@marinintim marinintim commented Jul 6, 2018

@CYBAI:

→ python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.0.2o  27 Mar 2018
@CYBAI
Copy link
Collaborator

@CYBAI CYBAI commented Jul 7, 2018

@marinintim :

Which version is your default python?

python --version

Due to using Python 2 in Servo, maybe the openssl in python 2 is not in 1.0.2?

@nicoabie
Copy link

@nicoabie nicoabie commented Jul 29, 2020

@marinintim can you check if this is solved now?

@jdm
Copy link
Member

@jdm jdm commented Jul 29, 2020

I'm going to go ahead and close this proactively, given the age.

@jdm jdm closed this Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.