question-mark
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/__init__.py", line 152, in __init__
    self.post_configuration_setup()
  File "/home/$USER/.local/lib/python3.6/site-packages/f5/bigip/__init__.py", line 111, in post_configuration_setup
    self._get_tmos_version()
  File "/home/$USER/.local/lib/python3.6/site-packages/f5/bigip/__init__.py", line 120, in _get_tmos_version
    response = connect.get(base_uri)
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/session.py", line 257, in wrapper
    response = method(self, REST_uri, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/session.py", line 462, in get
    return self.session.get(uri, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/sessions.py", line 521, in get
    return self.request('GET', url, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/sessions.py", line 494, in request
    prep = self.prepare_request(req)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/sessions.py", line 437, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/models.py", line 309, in prepare
    self.prepare_auth(auth, url)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/models.py", line 540, in prepare_auth
    r = auth(self)
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/authtoken.py", line 254, in __call__
    self.get_new_token(netloc)
  File "/home/$USER/.local/lib/python3.6/site-packages/icontrol/authtoken.py", line 150, in get_new_token
    auth=HTTPBasicAuth(self.username, self.password)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/home/$USER/.local/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/connection.py", line 314, in connect
    cert_reqs=resolve_cert_reqs(self.cert_reqs),
  File "/home/$USER/.local/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 269, in create_urllib3_context
    context.options |= options
  File "/home/$USER/.pyenv/versions/3.6.2/lib/python3.6/ssl.py", line 459, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  File "/home/$USER/.pyenv/versions/3.6.2/lib/python3.6/ssl.py", line 459, in options
    super(SSLContext, SSLContext).options.__set__(self, value)
  File "/home/$USER/.pyenv/versions/3.6.2/lib/python3.6/ssl.py", 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

1reaction
caphrim007commented, Dec 15, 2017

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

0reactions
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found