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

manylinux_2_28-cross:x86_64 : ssl module in Python is not available #33

Closed
makslevental opened this issue Feb 15, 2023 · 1 comment
Closed

Comments

@makslevental
Copy link

makslevental commented Feb 15, 2023

Sorry if I've misunderstood the discussion @ pypa/cibuildwheel#598 but I can't get this to work with cibuildwheel:

# pyproject.toml

[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"]
manylinux-x86_64-image = "messense/manylinux_2_28-cross:x86_64"
...

produces

$ cibuildwheel --platform linux

  Installing build dependencies: started
  Running command pip subprocess to install build dependencies
  Using pip 22.3.1 from /opt/_internal/cpython-3.10.8/lib/python3.10/site-packages/pip (python 3.10)
  WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
  Could not fetch URL https://pypi.org/simple/setuptools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/setuptools/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  ERROR: Could not find a version that satisfies the requirement setuptools>=42 (from versions: none)
  ERROR: No matching distribution found for setuptools>=42
  error: subprocess-exited-with-error

Currently investigating whether manylinux2014 works...

@makslevental makslevental changed the title messense/manylinux_2_28-cross:x86_64 : ssl module in Python is not available manylinux_2_28-cross:x86_64 : ssl module in Python is not available Feb 15, 2023
@messense
Copy link
Member

cibuildwheel doesn't support this right now, /opt/_internal/cpython-* is target Python which wasn't compiled with SSL support.

What you are doing now is basically using QEMU to run them (except that you are targeting x86_64 on x86_64 so QEMU isn't required).

See also https://crossenv.readthedocs.io/en/latest/quickstart.html

@messense messense closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2023
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

2 participants