title: aws lambda Unable to import module 'lambda_function': No module named 'requests'
body: <p>I have recently started to use AWS Lambda to use triggers against some python code I have written. I currently have 2 lambda functions, both of which have been created with ZIP files. The second one I created is supposed to test the trigger events.</p>
  
  <p>This is for testing purposes so I'm using the best code of all: </p>
  
  <pre><code>def lambda_handler(event, context):
      print ("Hello World")
  </code></pre>
  
  <p>However, I get this error back:</p>
  
  <pre><code>Response:
  {
    "errorMessage": "Unable to import module 'lambda_function'"
  }
  
  Request ID:
  "65024f16-172c-11e8-ab26-27ff3322e597"
  
  Function Logs:
  START RequestId: 65024f16-172c-11e8-ab26-27ff3322e597 Version: $LATEST
  Unable to import module 'lambda_function': No module named 'requests'
  
  END RequestId: 65024f16-172c-11e8-ab26-27ff3322e597
  REPORT RequestId: 65024f16-172c-11e8-ab26-27ff3322e597  Duration: 15.93 ms  
  Billed Duration: 100 ms     Memory Size: 128 MB Max Memory Used: 22 MB  
  </code></pre>
  
  <p>Everywhere I have searched for this, the answer was solved by making sure the names for the functions were correct or making sure the .zip file was readable. I have satisfied both of these conditions (the name of the file is lambda_function.py and it is in the root). </p>
  
  <p>Alternatively, it seems like it might be an issue with the logs. I double checked my permission and I have the ability to create logs with all resources. Any other ideas what the issue might be?</p>