question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: dereferencing pointer to incomplete type ‘PyFrameObject’

See original GitHub issue

Describe the issue:

Build Failed for Python3.11

Reproduce the code example:

python3.11 -m pip install git+https://github.com/numpy/numpy

Error message:

numpy/random/_mt19937.c: In function ‘__Pyx_AddTraceback’:
      numpy/random/_mt19937.c:438:62: error: dereferencing pointer to incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        438 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)

NumPy/Python version information:

Python 3.11.0a7+ (main, Apr 19 2022, 09:05:09) [GCC 9.4.0] on linux

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mattipcommented, May 3, 2022

For people who don’t want to click on a random link, it leads to a paste-bin site with the log from the build. The first line is python3.11 -m pip install cython==3.0.0a10. @SmartManoj You need to use cython HEAD: python3.11 -m pip install git+https://github.com/cython/cython@master. See this comment.

0reactions
sebergcommented, May 22, 2022

Going to close this, since this is in generated cython code and Cython seems to have fixed the specific issue (probably included in the new version that just came in). It seems likely that Cython isn’t yet fully compatible with 3.11, but there really isn’t much to do about it from our side I think (although a note may be helpful).

Read more comments on GitHub >

github_iconTop Results From Across the Web

"error: dereferencing pointer to incomplete type" in c
It looks like you define the struct for ObjectP in a different C file (probably Object.c). When the compiler is compiling List.c, ...
Read more >
Resolving the "dereferencing pointer to incomplete type" error
The “dereferencing pointer to incomplete type” error commonly occurs in C when one tries to dereference a type (usually a struct) that is:...
Read more >
user/py3-lxml: FTBFS: error: dereferencing pointer to ...
user/py3-lxml: FTBFS: error: dereferencing pointer to incomplete type 'PyFrameObject' {aka 'struct _frame'}. Found on ppc64:.
Read more >
Joulescope software for JS220 - #6 by mliberty - Issues - Joulescope
Preparing metadata (setup.py) … error error: subprocess-exited-with-error ... error: dereferencing pointer to incomplete type 'PyFrameObject' {aka 'struct ...
Read more >
1693641 – python-psycopg2 FTBFS with Python 3.8
Bug 1693641 - python-psycopg2 FTBFS with Python 3.8: dereferencing pointer to incomplete type 'PyInterpreterState'. Summary: python-psycopg2 FTBFS with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found