uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

Can't install 0.16.0 on Python3.11

Open dimaqq opened this issue 3 years ago • 1 comments

  • uvloop version: 0.16.0
  • Python version: 3.11a6, 3.11a7
  • Platform: Linux
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: N/A
  • Does uvloop behave differently from vanilla asyncio? How?: N/A
        running build_ext
        building 'uvloop.loop' extension
        creating build/temp.linux-x86_64-3.11
        creating build/temp.linux-x86_64-3.11/uvloop
        x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/dima/.cache/pypoetry/virtualenvs/silly-chat-9D3wOO4G-py3.11/include -I/usr/include/python3.11 -I/tmp/pip-req-build-8tkk629d/vendor/libuv/include -c uvloop/loop.c -o build/temp.linux-x86_64-3.11/uvloop/loop.o -O2
        uvloop/loop.c:214:12: fatal error: longintrepr.h: No such file or directory
          214 |   #include "longintrepr.h"
              |            ^~~~~~~~~~~~~~~
        compilation terminated.
        error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
        [end of output]

dimaqq avatar Apr 08 '22 06:04 dimaqq

I fixed it to use Cython 0.29.30 in 3.11. https://github.com/zeroday0619/uvloop/commit/0a1e46118e65d9ef225cd73e9390b93560fd8b3a

image

zeroday0619 avatar Jun 02 '22 14:06 zeroday0619

Thanks for the report! 0.16.0 won't support Python 3.11, 0.17 will.

fantix avatar Sep 13 '22 14:09 fantix