Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version 3.0.6 gives RecursionError

See original GitHub issue

Version 3.0.6 of f5-sdk, gives me an RecursionError when I try to create a new ManagmentRoot. Version 3.0.5 works as expected.

mgmt = ManagementRoot(bigip_server, bigip_username, bigip_password, token='tmos')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/$USER/.local/lib/python3.6/site-packages/f5/bigip/", line 152, in __init__
  File "/home/$USER/.local/lib/python3.6/site-packages/f5/bigip/", line 111, in post_configuration_setup
  File "/home/$USER/.local/lib/python3.6/site-packages/f5/bigip/", line 120, in _get_tmos_version
    response = connect.get(base_uri)
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/", line 257, in wrapper
    response = method(self, REST_uri, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/", line 462, in get
    return self.session.get(uri, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 521, in get
    return self.request('GET', url, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 494, in request
    prep = self.prepare_request(req)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 437, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 309, in prepare
    self.prepare_auth(auth, url)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 540, in prepare_auth
    r = auth(self)
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/", line 254, in __call__
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/", line 150, in get_new_token
    auth=HTTPBasicAuth(self.username, self.password)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/", line 440, in send
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/", line 601, in urlopen
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/", line 346, in _make_request
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/", line 850, in _validate_conn
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/", line 314, in connect
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/util/", line 269, in create_urllib3_context
    context.options |= options
  File "/home/$USER/.pyenv/versions/3.6.2/lib/python3.6/", line 459, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  File "/home/$USER/.pyenv/versions/3.6.2/lib/python3.6/", line 459, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  File "/home/$USER/.pyenv/versions/3.6.2/lib/python3.6/", line 459, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  [Previous line repeated 316 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object

I’m running Python 3.6.2 at the moment.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

caphrim007commented, Dec 15, 2017

@Kyrremann good to hear. the next release of the sdk will be next friday (the 22nd) US/PST

jesmith18commented, Dec 22, 2017

Installing pyOpenSSL eliminates this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

maximum recursion depth exceeded while calling a Python ...
I dare to say that in Python, pure recursive algorithm implementations are not correct/safe. A fib() implementation limited to 999 is not really ......
Read more >
What's New In Python 3.6 — Python 3.11.1 documentation
The py.exe launcher, when used interactively, no longer prefers Python 2 over Python 3 when the user doesn't specify a version (via command...
Read more >
Changelog — Schemathesis 3.17.5 documentation
Support for exception groups in newer Hypothesis versions. ... Internal: FailureContext.title attribute that gives a short failure description.
Read more >
The maximum recursion 100 has been exhausted before ...
I have this function to count with day names, and when I am add a long date he give this error 'The maximum...
Read more >
Changelog — pytest documentation
(Please see the full set of changes for this release also in the 7.0.0rc1 notes ... Both the old fspath and this new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found