uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

uvloop not supported in AWS Lambda Arm architecture

Open hareshkat opened this issue 4 years ago • 2 comments

  • uvloop version: 0.16.0
  • Python version: 3.8
  • Platform: Aws Lambda : Arm architecture
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in 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.

hareshkat avatar Nov 19 '21 04:11 hareshkat

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

Zatura avatar Apr 25 '23 16:04 Zatura

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

agronholm avatar May 14 '23 09:05 agronholm