sigil < 2.1.0 plugin support broken by Python 3.12

Bug #2055345 reported by Mihai Limbasan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sigil (Debian)
New
Unknown
sigil (Ubuntu)
New
Undecided
Unassigned

Bug Description

(Ubuntu 24.04 daily)

Due to a rather poorly documented API change in Python's ctypes module in 3.12.0a4 and newer, Sigil versions less than the yet to be released 2.1.0 exhibit broken plugin support when running using Python 3.12 as their interpreter.

The issue was identified and is currently fixed in upstream master, in a manner backwards compatible with all Python versions.

Details on the cause of the problem in this upstream Github issue: https://github.com/Sigil-Ebook/Sigil/issues/741

Fix in this upstream pull request: https://github.com/Sigil-Ebook/Sigil/pull/742

with the two fixing commits also attached as a patch to this bug report (I'm the PR author, if it matters in any way for accountability etc reasons.)

The patch will cleanly apply to 2.0.1 as well, the affected .py files haven't changed since.

The next Sigil release to carry the fix will be 2.1.0, estimated to ship only after the end of March, and due to the 3.12 transition this is affecting noble now. I've also reported this upstream in Debian at https://bugs.debian.org/1064992 , however since sid hasn't yet switched over to Python 3.12 I expect it'll take longer to bubble up, while it'll definitely be an issue in noble.

Thank you!

Tags: patch
Revision history for this message
Mihai Limbasan (mihailim) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "python3.12.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
summary: - sigil <= 2.1.0 plugin support broken by Python 3.12
+ sigil < 2.1.0 plugin support broken by Python 3.12
Changed in sigil (Debian):
status: Unknown → New
Revision history for this message
Mihai Limbasan (mihailim) wrote :

Upstream released Sigil 2.1.0, carrying this patch, so it's no longer necessary if an upgrade is planned.

Revision history for this message
Mihai Limbasan (mihailim) wrote :

Just curious, is there any action planned on this issue, as in either shipping 2.1.0, or shipping the patch? Otherwise we'll be shipping a Sigil build with broken plugin functionality out of the box.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.