title: aws - "Unable to import module 'process': /var/task/numpy/core/multiarray.so: invalid ELF header"
body: <p>Using aws lambda I am receiving the following error when the script is run with the numpy module:</p>
  
  <blockquote>
    <p>Unable to import module 'process': /var/task/numpy/core/multiarray.so:
    invalid ELF header</p>
  </blockquote>
  
  <p>Is this problem related to numpy itself or numpy specifically on aws lambda. What is an invalid ELF header?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I believe this is related to native code execution, as stated in this answer <a href="https://stackoverflow.com/questions/29994411/invalid-elf-header-when-using-the-nodejs-ref-module-on-aws-lambda?rq=1">&quot;invalid ELF header&quot; when using the nodejs &quot;ref&quot; module on AWS Lambda</a></p>