MagicStack / uvloop

Ultra fast asyncio event loop.
Apache License 2.0
10.36k stars 540 forks source link

uvloop not supported in AWS Lambda Arm architecture #451

Open hareshkat opened 2 years ago

hareshkat commented 2 years ago

uvloop is not running in AWS lambda Arm architecture. It is giving module 'uvloop.loop' not found error.

Zatura commented 1 year ago

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

agronholm commented 1 year ago

Sounds like OP didn't install uvloop, and is then wondering why they can't import it.