pypipython-3.x95% confidence\u2191 30

ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

Full error message
Python version: 3.11

Installing dependencies for an application by pip install -r requirements.txt gives the following error:

socket.c -o build/temp.linux-armv8l-cpython-311/aiohttp/_websocket.o
aiohttp/_websocket.c:198:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"                                   
          ^~~~~~~                        1 error generated.
error: command '/data/data/com.termux/files/usr/bin/arm-linux-androideabi-clang' 
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 aiohttp
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install
pyproject.toml-based projects

This error is specific to Python 3.11 version. On Python with 3.10.6 version installation goes fine.

Related question: yarl/_quoting.c:196:12: fatal error: 'longintrepr.h' file not found - 1 error generated

Solution for this error: need to update requirements.txt. Not working versions of modules with Python 3.11: aiohttp==3.8.1 yarl==1.4.2 frozenlist==1.3.0 Working versions: aiohttp==3.8.2 yarl==1.8.1 frozenlist==1.3.1 Links to the corresponding issues with fixes: https://github.com/aio-libs/aiohttp/issues/6600 https://github.com/aio-libs/yarl/issues/706 https://github.com/aio-libs/frozenlist/issues/305

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/89c5833b6fbcbeaf8e5d323fc4b6dce8fbecb728194c2fa09ea6a33e4798924d
hash \u00b7 89c5833b6fbcbeaf8e5d323fc4b6dce8fbecb728194c2fa09ea6a33e4798924d
ERROR: Could not build wheels for aiohttp, which is required… — DepScope fix | DepScope