[PYTHON] 'lambda_function': No module named When'selenium' appears

selenium PATH is wrong

For python the lambda layer is ・ Python ・ Python/lib/python3.x/site-packages

Please check again if the uploaded selenium zip file has the above directory structure because the subordinates will be read automatically.

Unzipped zip file

If you save the selenium downloaded from the outside as a zip and compress it together with the parent directory, you will not be able to use selenium with lambda.

スクリーンショット (146).png

If you decompress it once, then compress the folder again and upload it again, it will work.

Recommended Posts

'lambda_function': No module named When'selenium' appears
Resolve No module named tkinter
When lambda-uploader says No module named xxxx.
Today's python error: ModuleNotFoundError: No module named
Suddenly with Python PyInstaller No module named pyinstaller
Today's python error: ModuleNotFoundError: No module named
Django / Apache / mod_wsgi: No module named importlib
ModuleNotFoundError: No module named'***' when running Flask
ModuleNotFoundError in Python: No module named story
Solution for "Import Error: No module named requests"
python> import seiral> ImportError: No module named serial
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module named'flask_sqlalchemy'
After installing pygame with conda install No module named font
[Python] ModuleNotFoundError: No module named'urlparse'
Django, nginx, uWSGI, virtualenv ImportError: No module named site Solution Note
Why ModuleNotFoundError: No module named'dataset.mnist' appears in "Deep Learning from scratch".
[Solved] ImportError: No module named pyexpat and pyenv install is moss
python / netCDF / CentOS 6.8> ImportError: No module named netCDF4> sudo yum install netcdf4-python.x86_64