Bug 2247026

Summary: python-asyncmy fails to build with Python 3.13: error: implicit declaration of function ‘_PyStack_AsDict’
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-asyncmyAssignee: Ben Beasley <code>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, ksurma, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-31 14:54:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2244836    

Description Karolina Surma 2023-10-30 12:23:41 UTC
python-asyncmy fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

  asyncmy/connection.c: In function ‘__pyx_pw_7asyncmy_10connection_3_connect’:
  asyncmy/connection.c:2478:55: error: implicit declaration of function ‘_PyStack_AsDict’ [-Werror=implicit-function-declaration]
   2478 |     #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)


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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06578806-python-asyncmy/

For all our attempts to build python-asyncmy with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-asyncmy/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Beasley 2023-10-31 14:54:25 UTC
This is in Cython-generated code, and it works for me in a local mock build using the COPR. So I kicked off another COPR rebuild in https://copr.fedorainfracloud.org/coprs/g/python/python3.13/build/6584946/, and it succeeded. I don’t know what fixed this, but I’m closing the issue since I can’t reproduce it today.

Comment 2 Karolina Surma 2023-10-31 15:08:29 UTC
Thank you for investigating it.

Comment 3 Miro Hrončok 2023-10-31 17:05:30 UTC
> I don’t know what fixed this...

FTR it was https://github.com/cython/cython/pull/5767/commits/fe9117d7e03f2b33d2392fb1248f63eaebaf76e7

Sorry for the noise.