Skip to content

RecursionError: maximum recursion depth exceeded #179

@gaborbernat

Description

@gaborbernat

When trying to use it with boto3.

  File "/tmp/sync.py", line 353, in s3_client
    return boto3.client(
           ~~~~~~~~~~~~^
        "s3",
        ^^^^^
    ...<3 lines>...
        aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/tmp/.tox/sync/lib/python3.13/site-packages/boto3/__init__.py", line 92, in client
    return _get_default_session().client(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/tmp/.tox/sync/lib/python3.13/site-packages/boto3/session.py", line 297, in client
    return self._session.create_client(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        service_name,
        ^^^^^^^^^^^^^
    ...<8 lines>...
        config=config,
        ^^^^^^^^^^^^^^
    )
    ^
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/session.py", line 997, in create_client
    client = client_creator.create_client(
        service_name=service_name,
    ...<8 lines>...
        auth_token=auth_token,
    )
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/client.py", line 165, in create_client
    client_args = self._get_client_args(
        service_model,
    ...<10 lines>...
        partition_data,
    )
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/client.py", line 524, in _get_client_args
    return args_creator.get_client_args(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        service_model,
        ^^^^^^^^^^^^^^
    ...<10 lines>...
        partition_data,
        ^^^^^^^^^^^^^^^
    )
    ^
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/args.py", line 138, in get_client_args
    endpoint = endpoint_creator.create_endpoint(
        service_model,
    ...<9 lines>...
        proxies_config=new_config.proxies_config,
    )
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/endpoint.py", line 415, in create_endpoint
    http_session = http_session_cls(
        timeout=timeout,
    ...<5 lines>...
        proxies_config=proxies_config,
    )
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/httpsession.py", line 323, in __init__
    self._manager = PoolManager(**self._get_pool_manager_kwargs())
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/httpsession.py", line 340, in _get_pool_manager_kwargs
    'ssl_context': self._get_ssl_context(),
                   ~~~~~~~~~~~~~~~~~~~~~^^
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/httpsession.py", line 349, in _get_ssl_context
    return create_urllib3_context()
  File "/tmp/.tox/sync/lib/python3.13/site-packages/botocore/httpsession.py", line 139, in create_urllib3_context
    context.options |= options
    ^^^^^^^^^^^^^^^
  File "/py/.local/share/uv/python/cpython-3.13.3-macos-aarch64-none/lib/python3.13/ssl.py", line 561, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/py/.local/share/uv/python/cpython-3.13.3-macos-aarch64-none/lib/python3.13/ssl.py", line 561, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/py/.local/share/uv/python/cpython-3.13.3-macos-aarch64-none/lib/python3.13/ssl.py", line 561, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  [Previous line repeated 978 more times]
RecursionError: maximum recursion depth exceeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions