[Debian-pan-maintainers] Bug#1051197: python3-genx: GenX init fails at Numba compilation
Emmanuel FARHI
emmanuel.farhi at synchrotron-soleil.fr
Mon Sep 4 10:49:56 BST 2023
Package: python3-genx
Version: 3.6.21-1
Severity: important
X-Debbugs-Cc: emmanuel.farhi at synchrotron-soleil.fr
Dear Maintainer,
* What led up to the situation?
Launching genx brings a start-up window splash screen with a progress bar. The
initialization of Numba compilations is blocked after e.g. 1 minute, and bring
an error
* What exactly did you do (or not do) that was effective (or
ineffective)?
launch 'genx' command.
This brings a start-up window splash screen with a progress bar.
The initialization of Numba compilations is blocked at e.g. (40/23) after e.g.
1 minute, and bring an error.
* What was the outcome of this action?
error in the terminal:
$ genx
CRITICAL: uncought python error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/genx/gui/main_window.py", line 2264, in
OnInit
from ..models.lib import paratt_numba, neutron_numba, instrument_numba,
offspec, surface_scattering
File "/usr/lib/python3/dist-packages/genx/models/lib/instrument_numba.py",
line 9, in <module>
@numba.jit(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/genx/gui/main_window.py", line 2257, in
__call__
self.WriteSplash(f'compiling numba functions {self.update_counter}/21',
File "/usr/lib/python3/dist-packages/genx/gui/main_window.py", line 2199, in
WriteSplash
image = self.splash.GetBitmap()
^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type SplashScreen has been deleted
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/genx/gui/main_window.py", line 2264, in
OnInit
from ..models.lib import paratt_numba, neutron_numba, instrument_numba,
offspec, surface_scattering
File "/usr/lib/python3/dist-packages/genx/models/lib/instrument_numba.py",
line 9, in <module>
@numba.jit(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/genx/gui/main_window.py", line 2257, in
__call__
self.WriteSplash(f'compiling numba functions {self.update_counter}/21',
File "/usr/lib/python3/dist-packages/genx/gui/main_window.py", line 2199, in
WriteSplash
image = self.splash.GetBitmap()
^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type SplashScreen has been deleted
OnInit returned false, exiting...
* What outcome did you expect instead?
Normal init and GUI.
* POTENTIAL SOLUTION
It seems that installing an opencl ICD solves the issue, e.g. apt install
'pocl-opencl-icd'
Then all Numba compilations are completed, and the GUI shows-up.
So, in short this is a simple dependency issue.
-- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-11-amd64 (SMP w/256 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
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)
LSM: AppArmor: enabled
Versions of packages python3-genx depends on:
ii python3 3.11.2-1+b1
ii python3-appdirs 1.4.4-3
ii python3-docutils 0.19+dfsg-6
ii python3-h5py 3.7.0-8
ii python3-matplotlib 3.6.3-1+b1
ii python3-numba 0.56.4+dfsg-2
ii python3-numpy 1:1.24.2-1
ii python3-orsopy 1.1.0-2
ii python3-pint 0.19.2-1
ii python3-requests 2.28.1+dfsg-1
ii python3-scipy 1.10.1-2
ii python3-wxgtk4.0 4.2.0+dfsg-3
python3-genx recommends no packages.
python3-genx suggests no packages.
-- no debconf information
More information about the Debian-pan-maintainers
mailing list