title: AWS Lambda Function Can't Find Package - Psycopg2
body: <p>Here's my issue:</p>
  
  <pre><code>START RequestId: 3ef6bbb9-62da-11e8-82ba-81e0afb0b224 Version: $LATEST
  Unable to import module 'lambda_insertEmailAddress': No module named psycopg2
  
  END RequestId: 3ef6bbb9-62da-11e8-82ba-81e0afb0b224
  REPORT RequestId: 3ef6bbb9-62da-11e8-82ba-81e0afb0b224  Duration: 0.44 ms   Billed Duration: 100 ms     Memory Size: 128 MB Max Memory Used: 19 MB  
  </code></pre>
  
  <p>My zip file has the following structure <code>file name: lambdaInsertEmail.zip</code>:</p>
  
  <pre><code> total 98784
  drwxrwxrwx  20 chauncey  staff   680B May 27 13:22 psycopg2
  drwxrwxrwx  22 chauncey  staff   748B May 27 12:55 postgresql-9.4.3
  -rwxrwxrwx   1 chauncey  staff   1.8K Apr 30 15:41 lambda_insertEmailAddress.py
  -rw-r--r--   1 chauncey  staff    48M May 30 12:09 lambdaInsertEmail.zip
  </code></pre>
  
  <p>In case you want to know my setup.cfg file has the following changes:</p>
  
  <pre><code>pg_config=/Users/chauncey/Desktop/portfolio/aws_lambda_files/lambda_insertEmailAddress/postgresql-9.4.3/src/bin/pg_config/pg_config
  
  static_libpq=1
  </code></pre>
  
  <p>I'm trying to get this lambda function working. </p>