Re: Setup in debian 13 (trixie): bugs + fixes
Karsten Hilbert <[email protected]> Tue, 19 Aug 2025 23:57:41 +0200
| Newsgroups | gmane.comp.gnu.medical.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Tue, Aug 19, 2025 at 11:54:38AM -0300 schrieb Mar=EDa Scappini: > I think I had a lot of trouble because I did a fresh Trixie > install instead of upgrading (I usually do this every couple > months). I see, perhaps a bit unusual in the rather conservative :-o field of healthcare IT -- but surely things are expected to work nevertheless. > Yesterday I uninstalled python3-standard-mailcap and > reproduced the error: tried to run the client, it would not > start, and got this on terminal output: >=20 > $ gnumed > Log file: /home/jessie/.gnumed/logs/gnumed/gnumed-2025_08_19-11_00_57-2= 594.log > Temp dir: /tmp/gnumed-jessie/g-7enflnce > .=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > | Unhandled exception caught ! > | Type : <class 'ModuleNotFoundError'> > | Value: No module named 'mailcap' > `=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > Traceback (most recent call last): > File "<frozen runpy>", line 198, in _run_module_as_main > File "<frozen runpy>", line 88, in _run_code > File "/usr/share/gnumed/Gnumed/gnumed.py", line 990, in <module> > exit_code =3D run_gui() > File "/usr/share/gnumed/Gnumed/gnumed.py", line 763, in run_gui > from Gnumed.wxpython import gmGuiMain > File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 73, in <m= odule> > from Gnumed.pycommon import gmNetworkTools > File "/usr/share/gnumed/Gnumed/pycommon/gmNetworkTools.py", line 27, = in <module> > from Gnumed.pycommon import gmMimeLib > File "/usr/share/gnumed/Gnumed/pycommon/gmMimeLib.py", line 14, in <m= odule> > import mailcap > ModuleNotFoundError: No module named 'mailcap' Ha :-) I did not expect the 1.8 version to outlive bookworm, and thusly to be faced with Python 3.13. There's already a workaround in git master since October, dare I say, 2022 ... Backported for trixie, which was hardly a few-liner, which also effected an improvement since 3.13 narrows down the exception from ImportError to ModuleNotFoundError. Next package on Debian will still add "Depends: python3-standard-mailcap" for good measure. > The same type of error I got when missing python3-packaging: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > | Unhandled exception caught ! > | Type : <class 'ModuleNotFoundError'> > | Value: No module named 'packaging' > `=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > from Gnumed.wxpython import gmMacro > File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 53, in <mod= ule> > from Gnumed.wxpython import gmNarrativeWorkflows > File "/usr/share/gnumed/Gnumed/wxpython/gmNarrativeWorkflows.py", lin= e 39, in <module> > from Gnumed.wxpython import gmNarrativeWidgets > File "/usr/share/gnumed/Gnumed/wxpython/gmNarrativeWidgets.py", line = 41, in <module> > from Gnumed.wxpython import gmVisualProgressNoteWidgets > File "/usr/share/gnumed/Gnumed/wxpython/gmVisualProgressNoteWidgets.p= y", line 49, in <module> > from Gnumed.wxpython import gmDocumentWidgets > File "/usr/share/gnumed/Gnumed/wxpython/gmDocumentWidgets.py", line 4= 8, in <module> > from Gnumed.business import gmDICOM > File "/usr/share/gnumed/Gnumed/business/gmDICOM.py", line 26, in <mod= ule> > from packaging import version > ModuleNotFoundError: No module named 'packaging' Fixed as well. This required making the import conditional and only doing the Orthanc server version check if something had been imported... Karsten =2D-=20 GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B