Bug 1899449 - jpype fails to build with Python 3.10: PyFrameObject {aka struct _frame} has no member named f_executing
Summary: jpype fails to build with Python 3.10: PyFrameObject {aka struct _frame} has ...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: jpype
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1890022
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-11-19 09:11 UTC by Tomáš Hrnčiar
Modified: 2021-02-09 16:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2020-11-19 09:11:24 UTC
jpype fails to build with Python 3.10.0a2.

native/common/jp_exception.cpp: In function ‘PyTracebackObject* tb_create(PyTracebackObject*, PyObject*, const char*, const char*, int)’:
native/common/jp_exception.cpp:492:9: error: ‘PyFrameObject’ {aka ‘struct _frame’} has no member named ‘f_executing’
  492 |  frame->f_executing = 0;
      |         ^~~~~~~~~~~
native/common/jp_exception.cpp:501:9: error: ‘PyFrameObject’ {aka ‘struct _frame’} has no member named ‘f_stacktop’; did you mean ‘f_stackdepth’?
  501 |  frame->f_stacktop = NULL;
      |         ^~~~~~~~~~
      |         f_stackdepth
error: command '/usr/bin/gcc' failed with exit code 1

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01772938-jpype/

For all our attempts to build jpype with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/jpype/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Raphael Groner 2020-11-22 15:45:27 UTC
Thanks for the report. Is that upstream bug related? https://bugs.python.org/issue40421

I'm going to reproduce with new version 1.1.2, see bug #1890022.

Comment 2 Raphael Groner 2021-01-27 19:13:56 UTC
This bug seems fixed with new version 1.2.1 but execution of tests fail due to a pytest error, see bug #1890022.

Comment 3 Ben Cotton 2021-02-09 15:25:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.


Note You need to log in before you can comment on or make changes to this bug.