aiohttp icon indicating copy to clipboard operation
aiohttp copied to clipboard

Python 3.11 - error: _PyErr_StackItem {aka struct _err_stackitem} has no member named exc_type/exc_traceback

Open hrnciar opened this issue 3 years ago • 0 comments

Describe the bug

aiohttp doesn't build with Python 3.11

To Reproduce

Build aiohttp with Python 3.11

Expected behavior

Builds with Python 3.11

Logs/tracebacks

aiohttp/_http_writer.c: In function ‘__Pyx_ReraiseException’:
aiohttp/_http_writer.c:4736:20: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
 4736 |     type = exc_info->exc_type;
      |                    ^~
aiohttp/_http_writer.c:4738:18: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
 4738 |     tb = exc_info->exc_traceback;
      |                  ^~
error: command '/usr/bin/gcc' failed with exit code 1

Full log: https://download.copr.fedorainfracloud.org/results/@python/python3.11/fedora-rawhide-x86_64/04354617-python-aiohttp/builder-live.log.gz

Python Version

Python 3.11.0a7

aiohttp Version

3.8.1

multidict Version

6.0.2

yarl Version

1.8.0

OS

Fedora rawhide

Related component

Server, Client

Additional context

No response

Code of Conduct

  • [X] I agree to follow the aio-libs Code of Conduct

hrnciar avatar May 02 '22 11:05 hrnciar