sshtunnel
sshtunnel copied to clipboard
Package not working in AWS lambda
No module named 'sshtunnel': ModuleNotFoundError
Traceback (most recent call last):
File "/var/task/handler.py", line 518, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 262, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 151, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/task/ssh_tunnel_forward.py", line 1, in <module>
from sshtunnel import SSHTunnelForwarder
ModuleNotFoundError: No module named 'sshtunnel