Python-3.11 compatibility #1

Closed
opened 2022-06-05 22:52:46 -07:00 by juippis · 3 comments

Hey,

when attempting to build python-efl-1.26.0 with python-3.11, it ends with:

efl/utils/deprecated.c: In function '__Pyx_AddTraceback':
efl/utils/deprecated.c:461:62: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct      _frame'}
  461 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
      |                                                              ^~
efl/utils/deprecated.c:4806:5: note: in expansion of macro '__Pyx_PyFrame_SetLineNumber'
 4806 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Still works with python-3.8, 3.9 and 3.10, so something with 3.11 broke it.

EDIT: This is with export ENABLE_CYTHON=1 if that makes a difference.

Hey, when attempting to build python-efl-1.26.0 with python-3.11, it ends with: ``` efl/utils/deprecated.c: In function '__Pyx_AddTraceback': efl/utils/deprecated.c:461:62: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 461 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) | ^~ efl/utils/deprecated.c:4806:5: note: in expansion of macro '__Pyx_PyFrame_SetLineNumber' 4806 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` Still works with python-3.8, 3.9 and 3.10, so something with 3.11 broke it. EDIT: This is with `export ENABLE_CYTHON=1` if that makes a difference.
Owner

This should now be fixed in the 1.26.1 release,
can you give it a try?

This should now be fixed in the 1.26.1 release, can you give it a try?
Author

Can confirm 1.26.1 works with python-3.11 and python-3.12. Thanks!

Can confirm 1.26.1 works with python-3.11 and python-3.12. Thanks!
Owner

Great! thanks for testing this

...and sorry for the one-year delay :P

Great! thanks for testing this ...and sorry for the one-year delay :P
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: enlightenment/python-efl#1
No description provided.