Skip to contentSkip to conversation

Report that Coccinelle doesn't compile with Python 3.13.0a1

cocci Richard W.M. Jones 4 participants 5 messages Oct 26, 2023 – Nov 6, 2023

lore
Share & tools
lore
#0 lore raw

https://bugzilla.redhat.com/show_bug.cgi?id=2246276

Longer error message is in the link above, but the guts of it seems to be:

Py.find_library: unable to find the Python library [/lib64/libpython3.13.so.1.0 returned Cannot resolve _PyObject_NextNotImplemented.

I don't see anything about this in the release notes:

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

Rich.

Signature · 5 lines
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
#1 lore raw
Quoted 9 lines · Richard W.M. Jones

https://bugzilla.redhat.com/show_bug.cgi?id=2246276

Longer error message is in the link above, but the guts of it seems to be:

Py.find_library: unable to find the Python library [/lib64/libpython3.13.so.1.0 returned Cannot resolve _PyObject_NextNotImplemented.

I don't see anything about this in the release notes:

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

Thanks for the report. We will look into it.

julia

Quoted 11 lines

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

#2 lore raw
In reply to Richard W.M. Jones
Quoted 7 lines

https://bugzilla.redhat.com/show_bug.cgi?id=2246276

Longer error message is in the link above, but the guts of it seems to be:

Py.find_library: unable to find the Python library [/lib64/libpython3.13.so.1.0 returned Cannot resolve _PyObject_NextNotImplemented.

I don't see anything about this in the release notes:

Will interests grow for the involved software dependencies?
https://github.com/python/cpython/blame/78e6d72e38ef4b490f0098b644454031f20ae361/Objects/object.c#L1279

Regards,
Markus

#3 lore raw
In reply to Richard W.M. Jones
Quoted 1 line · Richard W.M. Jones

https://bugzilla.redhat.com/show_bug.cgi?id=2246276

FYI:

https://bugzilla.redhat.com/show_bug.cgi?id=2246276#c2

"The use of _PyObject_NextNotImplemented actually comes from ocaml-pyml. There is a new version of ocaml-pyml out that drops all support for python 2.7, including this symbol. I will build it and rebuild coccinelle. That should fix this bug. I will do mock builds first to ensure that is the case."

Rich.

Signature · 5 lines
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
#4 lore raw

Hi Richard,

Richard :

Quoted 5 lines

"The use of _PyObject_NextNotImplemented actually comes from ocaml-pyml. There is a new version of ocaml-pyml out that drops all support for python 2.7, including this symbol. I will build it and rebuild coccinelle. That should fix this bug. I will do mock builds first to ensure that is the case."

I indeed made a new release of pyml last week to fix the bug you reported (and following your report, thanks!), by replacing the internal _PyObject_NextNotImplemented with public API calls (but I don't think I have broken the support of python 2.7, but I should test that). I didn't have time to bundle the new release of pyml in coccinelle yet, but I plan to do that in a couple of days.

Thank you again for your report. Best regards.

Signature · 1 line
Thierry.