I'm writing a Python script (Python version 3.7 on Mac OS 10.15.7) that I intend to put on our AWS Lambda server and the script uses Paramiko. It runs perfectly fine in my IDE and on the command line, but when I try to run it on Lambda, I get this error message:
{
"errorMessage": "Unable to import module 'lambda_function': libs/bcrypt/_bcrypt.abi3.so: invalid ELF header",
"errorType": "Runtime.ImportModuleError"
}
I found this similar-looking question on Stack Overflow, but the answers to that question don't seem to apply to this situation as they relate to Windows and to a different Python library. But maybe there's something I missed?
Edit: Something that may be relevant is that my computer has Python 3.9 installed but I'm trying to write this in Python 3.7.