Closed ryangonzalez133 closed 1 year ago
Your problem is really about setting up a "function" to run in AWS Lambda. Nonetheless here are two suggestions based on a few seconds of web search, which would really be your best way forward together with reading the AWS Lambda docs.
I'm trying to run on an ARM lambda and I get this error. Do you know a way to run on ARM architecture?
(Function Logs
[ERROR] OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb': Not found '_raw_ecb.cpython-310-aarch64-linux-gnu.so', Cannot load '_raw_ecb.abi3.so': /opt/python/Cryptodome/Util/../Cipher/_raw_ecb.abi3.so: cannot open shared object file: No such file or directory, Not found '_raw_ecb.so'
Traceback (most recent call last):
File "/var/lang/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
But as above, you have to do whatever AWS wants you to do to ensure that the necessary dependencies are available.
Checklist
Question
Does anyone know a way to run Youtube-dl in an AWS Lambda? I've tried everything and I just get the error ("errorMessage": "Unable to import module 'lambda_function': No module named 'youtube_dl'", "errorType": "Runtime.ImportModuleError")