uvloop not supported in AWS Lambda Arm architecture
- uvloop version: 0.16.0
- Python version: 3.8
- Platform: Aws Lambda : Arm architecture
-
Can you reproduce the bug with
PYTHONASYNCIODEBUGin env?: - Does uvloop behave differently from vanilla asyncio? How?:
uvloop is not running in AWS lambda Arm architecture. It is giving module 'uvloop.loop' not found error.
By 2023 uvloop does support arm and arm64:
Example if you pip install uvloop on a x86, you willl get the x86 binaries, if you do pip install uvloop on an arm64, you will receive the arm64 uvloop binaries.
How did you uploaded your uvloop to the lambda? as a lambda layer? as a package .zip? Assuming your computer is x86 arch like 99% of people, on those scenarios you would probably have uploaded the uvloop version containing x86 binaries from your computer, of course it wouldn't work on a arm-based machine.
If that was the case, you should pack the right uvloop instead.
Also, to check other architectures, take a look at this: https://packages.gentoo.org/packages/dev-python/uvloop
Sounds like OP didn't install uvloop, and is then wondering why they can't import it.