I'm getting the above error when importing requests in my lambda function (Python).
I am following this guide, which instructed to "pip install requests". https://docs.aws.amazon.com/neptune/latest/userguide/iam-auth-connecting-python.html
Upon installing requests, I see:
Requirement already satisfied: requests in /Users/.../env/lib/python3.8/site-packages (2.32.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /Users/.../env/lib/python3.8/site-packages (from requests) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /Users/.../env/lib/python3.8/site-packages (from requests) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/.../env/lib/python3.8/site-packages (from requests) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in /Users/.../env/lib/python3.8/site-packages (from requests) (2024.6.2)
I am aware of the layers-solution, however prefer to avoid it and follow the steps in the guide linked above.
By the way, the "request" module has layers created by volunteer users, so you can use it without creating layers yourself. https://github.com/keithrozario/Klayers#list-of-arns