BUG: dereferencing pointer to incomplete type ‘PyFrameObject’
See original GitHub issueDescribe 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:
- Created a year ago
- Comments:8 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.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).