"Unable to import module 'lambda_function': No module named 'sshtunnel'"

0

Test Event Name test

Response { "errorMessage": "Unable to import module 'lambda_function': No module named 'sshtunnel'", "errorType": "Runtime.ImportModuleError", "requestId": "075b5d0d-993c-44df-9e2d-50f7025872f6", "stackTrace": [] }

Function Logs START RequestId: 075b5d0d-993c-44df-9e2d-50f7025872f6 Version: $LATEST [ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'sshtunnel' Traceback (most recent call last):END RequestId: 075b5d0d-993c-44df-9e2d-50f7025872f6 REPORT RequestId: 075b5d0d-993c-44df-9e2d-50f7025872f6 Duration: 1.11 ms Billed Duration: 2 ms Memory Size: 128 MB Max Memory Used: 37 MB Init Duration: 110.73 ms

Request ID 075b5d0d-993c-44df-9e2d-50f7025872f6

gefragt vor 2 Jahren1991 Aufrufe
1 Antwort
0

Your deployment package should include all the needed dependencies. If you use SAM for example, just use sam build and sam deploy.

profile pictureAWS
EXPERTE
Uri
beantwortet vor 2 Jahren
  • I have followed the AWS specified method ,but not working ,Not satified with the service

  • Did you include sshtunnel in the requirements file?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen