Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package not working in AWS lambda #260

Open
sridhar562345 opened this issue May 2, 2022 · 1 comment
Open

Package not working in AWS lambda #260

sridhar562345 opened this issue May 2, 2022 · 1 comment

Comments

@sridhar562345
Copy link

sridhar562345 commented May 2, 2022

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
@pahaz
Copy link
Owner

pahaz commented May 12, 2024

You need to provide more details. It looks like you need to add sshtunnel to your requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants