Skip to content
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

shreport无法编译 - MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. #4

Open
zoewent opened this issue Apr 13, 2024 · 0 comments

Comments

@zoewent
Copy link

zoewent commented Apr 13, 2024

只有import就会报错, from shreport import SH
具体报错信息:

/usr/local/bin/python3 /Users/xxxxxxx/Downloads/shreport_companies.py
/usr/local/lib/python3.11/site-packages/grequests.py:22: 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.ssl_ (/usr/local/lib/python3.11/site-packages/urllib3/util/ssl_.py)', 'urllib3.util (/usr/local/lib/python3.11/site-packages/urllib3/util/init.py)'].
curious_george.patch_all(thread=False, select=False)

报错信息中已提供解决方法,具体见gevent/gevent#1016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant