saghul / pyuv

Python interface for libuv
https://pyuv.readthedocs.io
MIT License
1.12k stars 105 forks source link

Push the new versions to PyPI #276

Open tcaiazzi opened 1 year ago

tcaiazzi commented 1 year ago

Hi @saghul,

I'm one of the maintainer of Kathará, a container-based network emulator, and we have a dependency with pyuv.

Now that the installation problem with Python3.10 is fixed (#275), I'm wondering if it is possible to push the new version of pyuv to PyPI. The installation via pip (on Python3.10) still returns the following error trace:

python3 -m pip install pyuv
Collecting pyuv
  Using cached pyuv-1.4.0.tar.gz (400 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyuv
  Building wheel for pyuv (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [151 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/pyuv
      copying pyuv/__init__.py -> build/lib.linux-x86_64-3.10/pyuv
      copying pyuv/_version.py -> build/lib.linux-x86_64-3.10/pyuv
      running build_ext
      creating build/temp.linux-x86_64-3.10
      creating build/temp.linux-x86_64-3.10/deps
      creating build/temp.linux-x86_64-3.10/deps/libuv
      creating build/temp.linux-x86_64-3.10/deps/libuv/src
      creating build/temp.linux-x86_64-3.10/deps/libuv/src/unix
      creating build/temp.linux-x86_64-3.10/src
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/fs-poll.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/fs-poll.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/inet.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/inet.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/threadpool.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/threadpool.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/async.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/async.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/core.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/core.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/dl.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/dl.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/fs.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/fs.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/getaddrinfo.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/getaddrinfo.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/getnameinfo.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/getnameinfo.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/linux-core.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/linux-core.o
      deps/libuv/src/unix/linux-core.c: In function ‘uv__io_poll’:
      deps/libuv/src/unix/linux-core.c:343:5: warning: converting a packed ‘struct uv__epoll_event’ pointer (alignment 1) to a ‘uv__io_t’ {aka ‘struct uv__io_s’} pointer (alignment 8) may result in an unaligned pointer value [-Waddress-of-packed-member]
        343 |     loop->watchers[loop->nwatchers] = (void*) events;
            |     ^~~~
      In file included from deps/libuv/src/unix/internal.h:38,
                       from deps/libuv/src/unix/linux-core.c:27:
      deps/libuv/src/unix/linux-syscalls.h:90:8: note: defined here
         90 | struct uv__epoll_event {
            |        ^~~~~~~~~~~~~~~
      In file included from deps/libuv/include/uv.h:62,
                       from deps/libuv/src/unix/linux-core.c:26:
      deps/libuv/include/uv-unix.h:91:8: note: defined here
         91 | struct uv__io_s {
            |        ^~~~~~~~
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/linux-inotify.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/linux-inotify.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/linux-syscalls.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/linux-syscalls.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/loop-watcher.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/loop-watcher.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/loop.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/loop.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/pipe.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/pipe.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/poll.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/poll.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/process.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/process.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/procfs-exepath.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/procfs-exepath.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/proctitle.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/proctitle.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/signal.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/signal.o
      deps/libuv/src/unix/signal.c: In function ‘uv__signal_stop’:
      deps/libuv/src/unix/signal.c:528:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
        528 |   int ret;
            |       ^~~
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/stream.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/stream.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/sysinfo-loadavg.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/sysinfo-loadavg.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/sysinfo-memory.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/sysinfo-memory.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/tcp.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/tcp.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/thread.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/thread.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/timer.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/timer.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/tty.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/tty.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/udp.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/udp.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/uv-common.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/uv-common.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/version.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/version.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c src/pyuv.c -o build/temp.linux-x86_64-3.10/src/pyuv.o
      In file included from src/pyuv.c:4:
      src/common.c: In function ‘pyuv_PyUnicode_EncodeFSDefault’:
      src/common.c:42:9: warning: ‘PyUnicode_EncodeUTF8’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:780:42: note: declared here
        780 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
            |                                          ^~~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c: In function ‘pyuv_PyUnicode_FSConverter’:
      src/common.c:76:14: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
         76 |     if (size != strlen(data)) {
            |              ^~
      In file included from src/pyuv.c:8:
      src/handle.c: In function ‘resurrect_object’:
      src/handle.c:17:21: error: lvalue required as left operand of assignment
         17 |     Py_REFCNT(self) = refcnt;
            |                     ^
      In file included from src/pyuv.c:16:
      src/stream.c: In function ‘pyuv__stream_write_sequence’:
      src/stream.c:369:19: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
        369 |     if (buf_count > ARRAY_SIZE(ctx->viewsml))
            |                   ^
      In file included from src/pyuv.c:23:
      src/udp.c: In function ‘pyuv__udp_send_sequence’:
      src/udp.c:321:19: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
        321 |     if (buf_count > ARRAY_SIZE(ctx->viewsml))
            |                   ^
      src/pyuv.c: In function ‘init_pyuv’:
      src/pyuv.c:75:5: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
         75 |     PyEval_InitThreads();
            |     ^~~~~~~~~~~~~~~~~~
      In file included from /usr/include/python3.10/Python.h:130,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/ceval.h:122:37: note: declared here
        122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyuv
  Running setup.py clean for pyuv
Failed to build pyuv
Installing collected packages: pyuv
  Running setup.py install for pyuv ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pyuv did not run successfully.
  │ exit code: 1
  ╰─> [153 lines of output]
      running install
      /home/tommaso/Code/Kathara-Framework/Kathara/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/pyuv
      copying pyuv/__init__.py -> build/lib.linux-x86_64-3.10/pyuv
      copying pyuv/_version.py -> build/lib.linux-x86_64-3.10/pyuv
      running build_ext
      creating build/temp.linux-x86_64-3.10
      creating build/temp.linux-x86_64-3.10/deps
      creating build/temp.linux-x86_64-3.10/deps/libuv
      creating build/temp.linux-x86_64-3.10/deps/libuv/src
      creating build/temp.linux-x86_64-3.10/deps/libuv/src/unix
      creating build/temp.linux-x86_64-3.10/src
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/fs-poll.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/fs-poll.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/inet.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/inet.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/threadpool.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/threadpool.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/async.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/async.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/core.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/core.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/dl.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/dl.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/fs.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/fs.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/getaddrinfo.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/getaddrinfo.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/getnameinfo.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/getnameinfo.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/linux-core.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/linux-core.o
      deps/libuv/src/unix/linux-core.c: In function ‘uv__io_poll’:
      deps/libuv/src/unix/linux-core.c:343:5: warning: converting a packed ‘struct uv__epoll_event’ pointer (alignment 1) to a ‘uv__io_t’ {aka ‘struct uv__io_s’} pointer (alignment 8) may result in an unaligned pointer value [-Waddress-of-packed-member]
        343 |     loop->watchers[loop->nwatchers] = (void*) events;
            |     ^~~~
      In file included from deps/libuv/src/unix/internal.h:38,
                       from deps/libuv/src/unix/linux-core.c:27:
      deps/libuv/src/unix/linux-syscalls.h:90:8: note: defined here
         90 | struct uv__epoll_event {
            |        ^~~~~~~~~~~~~~~
      In file included from deps/libuv/include/uv.h:62,
                       from deps/libuv/src/unix/linux-core.c:26:
      deps/libuv/include/uv-unix.h:91:8: note: defined here
         91 | struct uv__io_s {
            |        ^~~~~~~~
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/linux-inotify.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/linux-inotify.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/linux-syscalls.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/linux-syscalls.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/loop-watcher.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/loop-watcher.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/loop.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/loop.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/pipe.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/pipe.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/poll.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/poll.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/process.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/process.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/procfs-exepath.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/procfs-exepath.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/proctitle.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/proctitle.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/signal.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/signal.o
      deps/libuv/src/unix/signal.c: In function ‘uv__signal_stop’:
      deps/libuv/src/unix/signal.c:528:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
        528 |   int ret;
            |       ^~~
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/stream.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/stream.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/sysinfo-loadavg.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/sysinfo-loadavg.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/sysinfo-memory.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/sysinfo-memory.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/tcp.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/tcp.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/thread.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/thread.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/timer.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/timer.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/tty.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/tty.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/unix/udp.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/unix/udp.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/uv-common.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/uv-common.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c deps/libuv/src/version.c -o build/temp.linux-x86_64-3.10/deps/libuv/src/version.o
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/home/tommaso/Code/Kathara-Framework/Kathara/venv/include -I/usr/include/python3.10 -Ideps/libuv/include -Ideps/libuv/src -c src/pyuv.c -o build/temp.linux-x86_64-3.10/src/pyuv.o
      In file included from src/pyuv.c:4:
      src/common.c: In function ‘pyuv_PyUnicode_EncodeFSDefault’:
      src/common.c:42:9: warning: ‘PyUnicode_EncodeUTF8’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:780:42: note: declared here
        780 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
            |                                          ^~~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c:42:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
         42 |         return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape");
            |         ^~~~~~
      In file included from /usr/include/python3.10/unicodeobject.h:1046,
                       from /usr/include/python3.10/Python.h:83,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from src/pyuv.c:4:
      src/common.c: In function ‘pyuv_PyUnicode_FSConverter’:
      src/common.c:76:14: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
         76 |     if (size != strlen(data)) {
            |              ^~
      In file included from src/pyuv.c:8:
      src/handle.c: In function ‘resurrect_object’:
      src/handle.c:17:21: error: lvalue required as left operand of assignment
         17 |     Py_REFCNT(self) = refcnt;
            |                     ^
      In file included from src/pyuv.c:16:
      src/stream.c: In function ‘pyuv__stream_write_sequence’:
      src/stream.c:369:19: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
        369 |     if (buf_count > ARRAY_SIZE(ctx->viewsml))
            |                   ^
      In file included from src/pyuv.c:23:
      src/udp.c: In function ‘pyuv__udp_send_sequence’:
      src/udp.c:321:19: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
        321 |     if (buf_count > ARRAY_SIZE(ctx->viewsml))
            |                   ^
      src/pyuv.c: In function ‘init_pyuv’:
      src/pyuv.c:75:5: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
         75 |     PyEval_InitThreads();
            |     ^~~~~~~~~~~~~~~~~~
      In file included from /usr/include/python3.10/Python.h:130,
                       from src/pyuv.h:7,
                       from src/pyuv.c:2:
      /usr/include/python3.10/ceval.h:122:37: note: declared here
        122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pyuv

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

I fixed the problem in the setup.py using the following requirement:

pyuv @ git+https://github.com/saghul/pyuv@master#egg=pyuv

However, PyPI does not allow dependencies on packages which are not also hosted on PyPI, and this leads to the following installation error:

python3 -m pip install kathara       
Collecting kathara
  Using cached kathara-3.5.1.tar.gz (126 kB)
  Preparing metadata (setup.py) ... done
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
kathara depends on pyuv@ git+https://github.com/saghul/pyuv@master#egg=pyuv 

Let me know if I can do something to help you.

Thanks, Tommaso

luator commented 4 months ago

Hello, if you could publish a new release based on current master, that would be really cool! I'm in the same situation as @tcaiazzi, i.e. I'm currently depending on pyuv master but would like to put my package on PyPI, where this doesn't work.

saghul commented 4 months ago

IIRC more work is necessary to make the package work with recent Python versions, before we can make a release.

luator commented 4 months ago

I see. Do you have an overview what is still missing? We've been using the master branch with Python 3.10 and 3.11 now and at least for our use case it seems to be fine. But we probably don't cover the whole library, so there might be issues I'm not aware of.

saghul commented 4 months ago

Ah wait, master does have a couple of commits that might explain. I'll try to find some time to refresh the project and make a release.

luator commented 4 months ago

Yeah, I'd hope that simply making a new version based on current master is enough. Fingers crossed that this is indeed the case and thanks for looking into it!