3.11a7 CTracer compilation fails · Issue #1367 · nedbat/coveragepy (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@reaperhulk

Description

@reaperhulk

Under Python 3.11.0a7 the current coverage release fails to successfully compile the CTracer due to changes in the underlying PyCodeObject representation. python/cpython#91666 is probably a good place to start looking into this if you weren't already aware of the changes.

coverage/ctracer/tracer.c: In function ‘CTracer_handle_call’:
coverage/ctracer/tracer.c:533:46: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_code’
  533 |     PyObject * pCode = MyFrame_GetCode(frame)->co_code;
      |                                              ^~
coverage/ctracer/tracer.c: In function ‘CTracer_handle_return’:
coverage/ctracer/tracer.c:701:54: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_code’
  701 |             PyObject * pCode = MyFrame_GetCode(frame)->co_code;
      |                                                      ^~

As always, thank you so much for the most valuable package in Python. 😄