When I’m trying to connect to my atlas from AWS Lambda with PyMongo
I’m getting this error:
“errorMessage”: "The “dnspython” module must be installed to use mongodb+srv:// URIs.
I tried to add to the requirements.txt file pymong[srv] and got the same error, and when I changed pymongo to [srv] I got “No module pymongo”.
I also tried to add [srv,tls] and got the same error.
When I’m trying to add to the app.py:
os.system(‘pip install pymongo’)
“errorMessage”: “[Errno 30] Read-only file system: ‘/home/sbx_user1051’”]
I have no idea what else I can do, does anyone have any idea?