-
Notifications
You must be signed in to change notification settings - Fork 328
0.29.1: RecursionError: maximum recursion depth exceeded while calling a Python object #677
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
Comments
Hi Temoto. No, this isn't a duplicate, but a new issue. I'm experiencing this with Python 3.9 under Debian Sid as well, with Eventlet 0.26.1 (with some added patches cherry-picked to fix other issues). |
Hi. I just understood that the issue is triggered with dnspython 2.0.0 (at least for me). Discussing the issue on the relevant already opened bug from now on. |
Newer (2.0+) dnspython imports ssl (and requests, which would have eventually imported ssl), so greendns needs a monkey-patched ssl, too. This should prevent a RecursionError with SSLContext. Note that this *does not* bring full dnspython>=2.0 support, but our version pin hasn't stopped people from trying to run with newer dnspython anyway. May as well make it hurt a little less. Fixes eventlet#677, but see also eventlet#619.
Newer (2.0+) dnspython imports ssl (and requests, which would have eventually imported ssl), so greendns needs a monkey-patched ssl, too. This should prevent a RecursionError with SSLContext. Note that this *does not* bring full dnspython>=2.0 support, but our version pin hasn't stopped people from trying to run with newer dnspython anyway. May as well make it hurt a little less. Fixes #677, but see also #619.
76: Update eventlet to 0.30.2 r=duckinator a=pyup-bot This PR updates [eventlet](https://pypi.org/project/eventlet) from **0.30.1** to **0.30.2**. <details> <summary>Changelog</summary> ### 0.30.2 ``` ====== * greendns: patch ssl to fix RecursionError on SSLContext.options.__set__ eventlet/eventlet#677 ``` </details> <details> <summary>Links</summary> - PyPI: https://pypi.org/project/eventlet - Changelog: https://pyup.io/changelogs/eventlet/ - Homepage: http://eventlet.net </details> Co-authored-by: pyup-bot <[email protected]>
Seems that the Sentry logger causes a import of requests before the monkey patch of the eventlet happens. eventlet/eventlet#371 (comment) With Wallaby this seems now be an issue and causes a loop when importing the modules like here: eventlet/eventlet#677 although it is not dnspython >= 2 related.
I now have a similar error bag with latest versions from my distribution. PS:
Using |
I just used a static
Code: response = reqto.get(
f"https://{domain}/",
headers=network.web_headers,
timeout=(config.get("connection_timeout"), config.get("read_timeout"))
) I only replaced
|
So a simple code works, somewhere in my code, I don't know here, I made a mistake causing this? |
eventlet version:
Name : python3-eventlet
Version : 0.29.1
Release : 412
os:
Linux E2E0A942-2AB1-8546-AB44-B994FF1EB2B2 4.18.0-147.5.1.0.h276.eulerosv2r9.x86_64 #1 SMP Thu Nov 26 17:26:42 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
python: Python 3.7.4
crash error trace log:
The text was updated successfully, but these errors were encountered: