title: AWS lambda cannot import name '_bcrypt'
body: <p>I have written a simple python script which will ssh to a EC2 instance and run a script in that instance.</p>
  
  <p>I use paramiko library to do ssh connect.Below is my code snippet.</p>
  
  <pre><code>def lambda_handler(event, context):
      client = boto3.client('ec2')
      s3_client = boto3.client('s3')
      # Download private key file from secure S3 bucket
      s3_client.download_file('test','test.pem', '/tmp/test.pem')
      k = paramiko.RSAKey.from_private_key_file("/tmp/test.pem")
      c = paramiko.SSHClient()
      c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
      bastion_host = "xxx.com"
      print ("Connecting to " + bastion_host)
      c.connect(hostname=bastion_host, username="yyy", key_filename="/tmp/test.pem")
      print ("Connected to " + bastion_host)
      commands = [
  
          "sh /home/ec2-user/TestDeploy.sh"
      ]
      for command in commands:
          print ("Executing {}".format(command))
          stdin, stdout, stderr = c.exec_command(command)
          print (stdout.read())
          print (stderr.read())
  return 'Hello from Lambda'
  </code></pre>
  
  <p>In my local setup where the python version is 3.6.2 it is working fine. But when i upload it along with all the dependent libraries in AWS lambda and run,  it gives me the below error. </p>
  
  <pre><code>cannot import name '_bcrypt'
  </code></pre>
  
  <p>I have verified that i have the bcrypt folder in the uploaded zip.</p>