When I zip "grequest" and attempt to use it in a AWS Lambda function I get this error:
[ERROR] RuntimeError: Gevent is required for grequests.
Traceback (most recent call last):
File "/var/lang/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/var/lang/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/task/fiveDay_updater.py", line 11, in <module>
import grequests as asyncReq
File "/var/task/grequests.py", line 18, in <module>
raise RuntimeError('Gevent is required for grequests.')
It seems like others have had this problem. Unable to import grequests for AWS Lambda Unfortunately the solution proposed in the above link does not work for me. Does anyone have a "grequest" zip that will work for the later python, or know of a solution to the problem?