Skip to content

Monkey-patching may also silently lead to incorrect behaviour on Python 3.7 #8164

Description

@tooptoop4

[2020-04-06 08:58:58 +0000] [4986] [INFO] Booting worker with pid: 4986 /home/ec2-user/venv/local/lib/python3.6/site-packages/gunicorn/workers/ggevent.py:65: MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. It may also silently lead to incorrect behaviour on Python 3.7. Please monkey-patch earlier. See gevent/gevent#1016. Modules that had direct imports (NOT patched): ['urllib3.util (/home/ec2-user/venv/local/lib/python3.6/site-packages/urllib3/util/init.py)', 'urllib3.util.ssl_ (/home/ec2-user/venv/local/lib/python3.6/site-packages/urllib3/util/ssl_.py)']. monkey.patch_all(subprocess=True) /home/ec2-user/venv/local/lib/python3.6/site-packages/gunicorn/workers/ggevent.py:65: MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. It may also silently lead to incorrect behaviour on Python 3.7. Please monkey-patch earlier. See gevent/gevent#1016. Modules that had direct imports (NOT patched): ['urllib3.util (/home/ec2-user/venv/local/lib/python3.6/site-packages/urllib3/util/init.py)', 'urllib3.util.ssl_ (/home/ec2-user/venv/local/lib/python3.6/site-packages/urllib3/util/ssl_.py)']. monkey.patch_all(subprocess=True) [2020-04-06 08:58:58,803] {init.py:51} INFO - Using executor LocalExecutor [2020-04-06 08:58:58,805] {dagbag.py:403} INFO - Filling up the DagBag from /home/ec2-user/airflow/dags

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions