[Debichem-devel] Bug#1078148: bkchem: Not starting with Python 3.12: No module named 'imp'
Vincent Meille
vincent+debian at vivam.info
Wed Aug 7 13:18:26 BST 2024
Package: bkchem
Version: 0.14.0~pre4+git20211228-3
Severity: important
Tags: patch
Dear Maintainer,
after showing its logo, this application crashes under the Python 3.12
environment with this trace:
'''
Traceback (most recent call last):
File "/usr/share/bkchem/bkchem/bkchem.py", line 185, in <module>
myapp.initialize()
File "/usr/share/bkchem/bkchem/main.py", line 116, in initialize
self.init_modes()
File "/usr/share/bkchem/bkchem/main.py", line 490, in init_modes
import imp
ModuleNotFoundError: No module named 'imp'
'''
This is related to the imp module removal in Python 3.12 [1].
1 : https://docs.python.org/3/whatsnew/3.12.html#imp
I produced the joined patch with the help of the link above.
Regards,
Vincent.
-- System Information:
Debian Release: trixie/sid
APT prefers noble-updates
APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500,
'noble')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.0-39-generic (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages bkchem depends on:
ii python3 3.12.3-0ubuntu1
ii python3-pil 10.2.0-1ubuntu1
bkchem recommends no packages.
Versions of packages bkchem suggests:
ii python3-cairo 1.25.1-2build2
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bkchem_imp.patch
Type: text/x-patch
Size: 1436 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debichem-devel/attachments/20240807/92880f07/attachment.bin>
More information about the Debichem-devel
mailing list