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

Kokoro Benchmarking Tests presubmit fails with error ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+ #1018

Closed
parthea opened this issue Oct 7, 2023 · 0 comments
Assignees
Labels
api: spanner Issues related to the googleapis/python-spanner API.

Comments

@parthea
Copy link
Contributor

parthea commented Oct 7, 2023

The Kokoro Benchmarking Tests presubmit check has been failing since last week. See build log.
The stack trace is

+ /home/kbuilder/.pyenv/versions/3.9.0/bin/python -m benchmark.benchwrapper.main --port 8081
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.9.0/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/kbuilder/.pyenv/versions/3.9.0/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/python-spanner/benchmark/benchwrapper/main.py", line 37, in <module>
    from google.cloud import spanner
  File "/tmpfs/src/github/python-spanner/google/cloud/spanner.py", line 17, in <module>
    from google.cloud.spanner_v1 import __version__
  File "/tmpfs/src/github/python-spanner/google/cloud/spanner_v1/__init__.py", line 23, in <module>
    from .services.spanner import SpannerClient
  File "/tmpfs/src/github/python-spanner/google/cloud/spanner_v1/services/spanner/__init__.py", line 16, in <module>
    from .client import SpannerClient
  File "/tmpfs/src/github/python-spanner/google/cloud/spanner_v1/services/spanner/client.py", line 37, in <module>
    from google.api_core import gapic_v1
  File "/home/kbuilder/.local/lib/python3.9/site-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module>
    from google.api_core.gapic_v1 import config
  File "/home/kbuilder/.local/lib/python3.9/site-packages/google/api_core/gapic_v1/config.py", line 26, in <module>
    from google.api_core import retry
  File "/home/kbuilder/.local/lib/python3.9/site-packages/google/api_core/retry.py", line 67, in <module>
    import requests.exceptions
  File "/home/kbuilder/.local/lib/python3.9/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/home/kbuilder/.local/lib/python3.9/site-packages/urllib3/__init__.py", line 41, in <module>
    raise ImportError(
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2g  1 Mar 2016'. See: https://github.com/urllib3/urllib3/issues/2168

I believe the failure started when google-auth-library-python released version 2.23.1 which removes the constraint urllib3<2.0 via googleapis/google-auth-library-python#1389.

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner API. label Oct 7, 2023
@parthea parthea closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API.
Projects
None yet
Development

No branches or pull requests

2 participants