Bug 2155429 - python-fisx fails to build with Python 3.12: error: _PyUnicode_Ready was not declared in this scope
Summary: python-fisx fails to build with Python 3.12: error: _PyUnicode_Ready was not ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fisx
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2155496 2172822
Blocks: PYTHON3.12
TreeView+ depends on / blocked
 
Reported: 2022-12-21 08:56 UTC by Tomáš Hrnčiar
Modified: 2023-04-10 09:02 UTC (History)
5 users (show)

Fixed In Version: python-fisx-1.2.1-2.fc39
Clone Of:
Environment:
Last Closed: 2023-04-10 09:02:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2022-12-21 08:56:17 UTC
python-fisx fails to build with Python 3.12.0a3.

/builddir/build/BUILD/fisx-1.2.0/python/cython/_fisx.cpp:571:51: error: ‘_PyUnicode_Ready’ was not declared in this scope; did you mean ‘PyUnicode_READY’?
  571 |                                               0 : _PyUnicode_Ready((PyObject *)(op)))
      |                                                   ^~~~~~~~~~~~~~~~

Leagcy Unicode APIs has been removed. See PEP 623 for detail.
        PyUnicode_WCHAR_KIND
        PyUnicode_AS_UNICODE()
        PyUnicode_AsUnicode()
        PyUnicode_AsUnicodeAndSize()
        PyUnicode_AS_DATA()
        PyUnicode_FromUnicode()
        PyUnicode_GET_SIZE()
        PyUnicode_GetSize()
        PyUnicode_GET_DATA_SIZE()

https://docs.python.org/3.12/whatsnew/3.12.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05128785-python-fisx/

For all our attempts to build python-fisx with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-fisx/

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.12:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
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 Ben Cotton 2023-02-07 15:03:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Fedora Update System 2023-04-10 09:01:05 UTC
FEDORA-2023-636d50230b has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-636d50230b

Comment 3 Fedora Update System 2023-04-10 09:02:48 UTC
FEDORA-2023-636d50230b has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


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