title: "module initialization " in AWS lambada
body: <p>I have created a SQS queue and now i want to read the data from my lambada function.I have configured the trigger from SQS to this lambada function.</p>
  
  <p>When i put the message in SQS Queue it shows me 1 message in Flight.But when i click test in lambda function it give me </p>
  
  <p>Error</p>
  
  <pre><code>  {
         "errorMessage": "module initialization error"
    }
  </code></pre>
  
  <p>I am using below boto3</p>
  
  <pre><code>  import boto3
    sqs = boto3.client('sqs')
    queue_url = 'https://sqs.us-east-1.amazonaws.com/944198216610/My-Queue'
  
    response = sqs.receive_message(
  
         QueueUrl='https://sqs.us-east-1.amazonaws.com/944198216610/My-Queue',
  
         AttributeNames=[
        'SentTimestamp'],
  
         MaxNumberOfMessages=1,
  
         MessageAttributeNames=[
         'All'
          ],
  
         VisibilityTimeout=0,
          WaitTimeSeconds=0
  
         )
  
        message = response['Messages'][0]
  
        receipt_handle = message['ReceiptHandle']
  
        # Delete received message from queue
        sqs.delete_message(
        QueueUrl='https://sqs.us-east-1.amazonaws.com/944198216610/My-Queue',
        ReceiptHandle=receipt_handle
  
          )
  
  
          print('Received and deleted message: %s' % message)
  </code></pre>