title: AWS lambda "Unable to import module 'lambda_function" when I uncomment one of my imports
body: <p>I have an AWS lambda that takes images from an S3 and copies them to an Azure blob storage.</p>
  
  <p>The start of my code looks like this:</p>
  
  <pre class="lang-py prettyprint-override"><code>    import json
      import boto3
      # from azure.storage.blob import BlockBlobService, PublicAccess
      from pymongo import MongoClient
      import bson
      from urllib.parse import unquote
      from datetime import datetime
      import pytz
      import logging
  </code></pre>
  
  <p>This code runs fine. When I uncomment the azure storage line to get:</p>
  
  <pre class="lang-py prettyprint-override"><code>    import json
      import boto3
      from azure.storage.blob import BlockBlobService, PublicAccess
      from pymongo import MongoClient
      import bson
      from urllib.parse import unquote
      from datetime import datetime
      import pytz
      import logging
  </code></pre>
  
  <p>I now get:</p>
  
  <pre><code>Response:
  {
    "errorMessage": "Unable to import module 'lambda_function': libffi-d78936b1.so.6.0.4: cannot open shared object file: No such file or directory",
    "errorType": "Runtime.ImportModuleError"
  }
  </code></pre>
  
  <p>Why does importing an azure library cause the entire lambda_handler to not work? I have successfully included all the other libraries in the AWS Lambda Layer, so it definitely exists. The entire Lambda runs fine when I comment out this line of code, so what's going on?</p>
  
  <p>If there was an issue importing azure.storage.blob, wouldn't it say "Unable to import module azure.storage.blob"?</p>