Open
Description
When trying to run the lambda on the default x86_64 lambda architecture, it will crash with this error message.
[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'ujson'
Traceback (most recent call last):
INIT_REPORT Init Duration: 586.43 ms Phase: init Status: error Error Type: Runtime.ImportModuleError
[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'ujson'
Traceback (most recent call last):
INIT_REPORT Init Duration: 1686.05 ms Phase: invoke Status: error Error Type: Runtime.ImportModuleError
START RequestId: 44a81ead-dd98-4639-8081-b148d26de940 Version: $LATEST
END RequestId: 44a81ead-dd98-4639-8081-b148d26de940
REPORT RequestId: 44a81ead-dd98-4639-8081-b148d26de940 Duration: 1697.63 ms Billed Duration: 1698 ms Memory Size: 512 MB Max Memory Used: 75 MB Status: error Error Type: Runtime.ImportModuleError
But as soon as you set the architecture to arm64 it works fine.
The last version that is working in x86_64 is 4.0.2, at the time of this writing the latest version is 4.5.0.
IMO, the issue is not much that it does not work with x86_64, but more that it is not documented in the manual installation guide.
Cheers!
Metadata
Metadata
Assignees
Labels
No labels