title: Import pytz into AWS lambda function
body: <p>I'm writing a lambda function that works with datetimes and trying to import pytz so I can have timezone be accounted for when comparing.</p>
  
  <pre><code>import boto3
  import pytz
  from datetime import timedelta, date, datetime
  from boto3.dynamodb.conditions import Key, Attr
  </code></pre>
  
  <p>causes this to display</p>
  
  <pre><code>{errorMessage=Unable to import module 'lambda_function'}
  </code></pre>
  
  <p>but when I remove import pytz the function fires (it just doesn't work properly without timezone info)</p>