aiohttp-apispec icon indicating copy to clipboard operation
aiohttp-apispec copied to clipboard

Failed building wheel for aiohttp-apispec

Open DalmatianuSebikk opened this issue 2 years ago • 3 comments

File "/usr/lib/python3.10/_distutils_system_mod.py", line 137, in wrapped_load_schemes
          _inject_headers(name, scheme)
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 125, in _inject_headers
          scheme['headers'] = orig_install._load_schemes()['posix_prefix']['headers']
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 137, in wrapped_load_schemes
          _inject_headers(name, scheme)
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 125, in _inject_headers
          scheme['headers'] = orig_install._load_schemes()['posix_prefix']['headers']
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 137, in wrapped_load_schemes
          _inject_headers(name, scheme)
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 125, in _inject_headers
          scheme['headers'] = orig_install._load_schemes()['posix_prefix']['headers']
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 137, in wrapped_load_schemes
          _inject_headers(name, scheme)
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 125, in _inject_headers
          scheme['headers'] = orig_install._load_schemes()['posix_prefix']['headers']
        File "/usr/lib/python3.10/_distutils_system_mod.py", line 135, in wrapped_load_schemes
          schemes = _load_schemes()
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 103, in _load_schemes
          sysconfig_schemes = _load_sysconfig_schemes() or {}
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 91, in _load_sysconfig_schemes
          with contextlib.suppress(AttributeError):
      RecursionError: maximum recursion depth exceeded
      [end of output]

ERROR: Failed building wheel for aiohttp-apispec Failed to build aiohttp-apispec
ERROR: Could not build wheels for aiohttp-apispec, which is required to install pyproject.toml-based projects
I can't install it.

DalmatianuSebikk avatar May 08 '22 12:05 DalmatianuSebikk

I have the same issue. Anyone have any ideas how to get around this?

blockanz avatar May 26 '22 20:05 blockanz

It's been 1 month and this issue still exists.

tjhasan avatar Jun 09 '22 17:06 tjhasan

Ok I found the problem. This issue will appear if you compile it with anything past Python 3.8. So in order to get around it for now, trying building the wheel using an older version of Python. I just did it with Python 3.8 and it worked.

tjhasan avatar Jun 12 '22 19:06 tjhasan