Hello,
I'm having an issue adding dropbox to the Python layer I use in my lambda function. The code works fine locally but when I add the library to my layer the lambda just times out. Locally I use Windows 11 and Python 3.9, my lambda is set to use Python 3.9. As I have been troubleshooting, here are some details that might be useful:
Trying to run the lambda without updating the layer produces an error: "Unable to import module 'lambda_function': No module named 'dropbox'" -> this is expected as the layer doesn't include the library.
Pip shows that dropbox requires requests, six, and stone. Looking at the install log, it also added ply. Requests is already in my layer so I only added the dropbox files. After that, the error thrown is "Unable to import module 'lambda_function': No module named 'stone'". Again, expected. Here is where the problem manifests itself: when I add the files for stone to the layer, the lambda times out. No errors, no details, just a timeout.
dropbox version: 11.36.0
stone version: 3.3.1
requests version: 2.28.1
Any ideas are greatly appreciated.