Closed fafanoulele closed 1 month ago
https://github.com/MagicStack/uvloop/pull/587 will fix this
Great! Thanks @fantix for the update!
I came across this using the Fedora 41 Beta, which ships with Python 3.13. Hopefully 0.21.0 will arrive on PyPI soon.
waiting for this to be merged and live.
can confirm that I could compile and install uvloop on 3.13.0 on ubuntu 22.04lts.
Processing /tmp/uvloop
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: uvloop
Building wheel for uvloop (pyproject.toml) ... done
Created wheel for uvloop: filename=uvloop-0.21.0b1-cp313-cp313-linux_x86_64.whl size=4619984 sha256=19fe6d03992624850ed0a41918596dfe97a7ba5413666d345808c5493967818c
Stored in directory: /tmp/pip-ephem-wheel-cache-bu70wa59/wheels/0e/58/6c/936f66fee135226024fdde3587af7da3d5787645f9ad5f088e
Successfully built uvloop
Installing collected packages: uvloop
Successfully installed uvloop-0.21.0b1```
OK, I have this error too. Also on Ubuntu, but 24.04. Any clues?
Current master builds fine against standard 3.13.0 but failes when python is build with free-threaded/nogil mode with several errors like this:
uvloop/loop.c: In function ‘__Pyx_CyFunction_CallAsMethod’:
uvloop/loop.c:207937:6: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
207937 | __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
Tested against free-threaded python 3.13.0 installed via asdf
using asdf install python 3.13.0t
.
3.13.0 still have this bug yeah, especially when installing asyncio. Solution: I dropped back to 3.12 for Docker img, and it worked.
Would be nice if the fix is installed for 3.13 though
Same error on MacOS 15.0.1 with Python 3.13
I can admit 0.21.0b1 compiles successfully on Ubuntu 24.04 now. I went with my fork of CPython, installed all dependencies and it works. However: test_cython_coro_is_coroutine (test_cython.TestCythonIntegration.test_cython_coro_is_coroutine) ... python: Objects/codeobject.c:947: PyCode_Addr2Line: Assertion `addrq >= 0 && addrq < _PyCode_NBYTES(co)' failed. Aborted (core dumped) make: *** [Makefile:50: test] Error 134
I also tried to compile with forked Python (which is 3.14 pre-alpha, just 4 days old) and it failed.
@fantix Think you could spin a new release with python 3.13 support?
Yup, on it. I'll promote the current beta into a release.
PYTHONASYNCIODEBUG
in env?: N/AI failed to install uvloop on Python 3.13-rc1 using this command
docker run --name python --rm -i -t python:3.13-rc pip install uvloop
. It ends up with those errors: