Re: Setup in debian 13 (trixie): bugs + fixes
María Scappini <[email protected]> Tue, 19 Aug 2025 11:54:38 -0300
| Newsgroups | gmane.comp.gnu.medical.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------6z4ZDHuB0w1UBy4DCSjMoiT0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Hello Karsten!
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). Thus the need to bootstrap and do everything from
scratch.
> Did you encounter a downright error when _not_ installing
> python3-standard-mailcap or how else did you chance upon
> this ?
Yes, I encountered an error when python3-standard-mailcap
was not installed and the client would not start/run at all.
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:
$ gnumed
Log file: /home/jessie/.gnumed/logs/gnumed/gnumed-2025_08_19-11_00_57-2594.log
Temp dir: /tmp/gnumed-jessie/g-7enflnce
.========================================================
| Unhandled exception caught !
| Type : <class 'ModuleNotFoundError'>
| Value: No module named 'mailcap'
`========================================================
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 = 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 <module>
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 <module>
import mailcap
ModuleNotFoundError: No module named 'mailcap'
What I did the first time to debug was just search for
"mailcap" with apt, found there was a python library named
like that, installed to see if that solved, then tried
again to run and it did no problem. Same here now:
re-installing python3-standard-mailcap lets me run the
client again no problem.
The same type of error I got when missing python3-packaging:
========================================================
| Unhandled exception caught !
| Type : <class 'ModuleNotFoundError'>
| Value: No module named 'packaging'
`========================================================
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 = 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 94, in <module>
from Gnumed.wxpython import gmProviderInboxWidgets
File "/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py", line 36, in <module>
from Gnumed.wxpython.gmVaccWidgets import manage_vaccinations
File "/usr/share/gnumed/Gnumed/wxpython/gmVaccWidgets.py", line 42, in <module>
from Gnumed.wxpython import gmFormWidgets
File "/usr/share/gnumed/Gnumed/wxpython/gmFormWidgets.py", line 35, in <module>
from Gnumed.wxpython import gmMacro
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 53, in <module>
from Gnumed.wxpython import gmNarrativeWorkflows
File "/usr/share/gnumed/Gnumed/wxpython/gmNarrativeWorkflows.py", line 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.py", line 49, in <module>
from Gnumed.wxpython import gmDocumentWidgets
File "/usr/share/gnumed/Gnumed/wxpython/gmDocumentWidgets.py", line 48, in <module>
from Gnumed.business import gmDICOM
File "/usr/share/gnumed/Gnumed/business/gmDICOM.py", line 26, in <module>
from packaging import version
ModuleNotFoundError: No module named 'packaging'
> We tell the Debian people that we need that and kindly ask
> them to consider the need for the next packaging :)
I see, I see!
> ATM it is manual. There's a multitude of ways of
> pre-definining Python dependancies and none so far has
> piqued my interest sufficiently. Ne'erthelesse would I be
> willing to include contributed (heh :) infrastructure code
> to that end, especially if it works towards enabling users
> to setup a systemwide venv for the gnumed client.
Will look into this... :)
María
--------------6z4ZDHuB0w1UBy4DCSjMoiT0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<pre>Hello Karsten!
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). Thus the need to bootstrap and do everything from
scratch.
> Did you encounter a downright error when _not_ installing
> python3-standard-mailcap or how else did you chance upon
> this ?
Yes, I encountered an error when python3-standard-mailcap
was not installed and the client would not start/run at all.
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:
$ gnumed
Log file: /home/jessie/.gnumed/logs/gnumed/gnumed-2025_08_19-11_00_57-2594.log
Temp dir: /tmp/gnumed-jessie/g-7enflnce
.========================================================
| Unhandled exception caught !
| Type : <class 'ModuleNotFoundError'>
| Value: No module named 'mailcap'
`========================================================
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 = 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 <module>
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 <module>
import mailcap
ModuleNotFoundError: No module named 'mailcap'
What I did the first time to debug was just search for
"mailcap" with apt, found there was a python library named
like that, installed to see if that solved, then tried
again to run and it did no problem. Same here now:
re-installing python3-standard-mailcap lets me run the
client again no problem.
The same type of error I got when missing python3-packaging:
========================================================
| Unhandled exception caught !
| Type : <class 'ModuleNotFoundError'>
| Value: No module named 'packaging'
`========================================================
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 = 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 94, in <module>
from Gnumed.wxpython import gmProviderInboxWidgets
File "/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py", line 36, in <module>
from Gnumed.wxpython.gmVaccWidgets import manage_vaccinations
File "/usr/share/gnumed/Gnumed/wxpython/gmVaccWidgets.py", line 42, in <module>
from Gnumed.wxpython import gmFormWidgets
File "/usr/share/gnumed/Gnumed/wxpython/gmFormWidgets.py", line 35, in <module>
from Gnumed.wxpython import gmMacro
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 53, in <module>
from Gnumed.wxpython import gmNarrativeWorkflows
File "/usr/share/gnumed/Gnumed/wxpython/gmNarrativeWorkflows.py", line 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.py", line 49, in <module>
from Gnumed.wxpython import gmDocumentWidgets
File "/usr/share/gnumed/Gnumed/wxpython/gmDocumentWidgets.py", line 48, in <module>
from Gnumed.business import gmDICOM
File "/usr/share/gnumed/Gnumed/business/gmDICOM.py", line 26, in <module>
from packaging import version
ModuleNotFoundError: No module named 'packaging'
> We tell the Debian people that we need that and kindly ask
> them to consider the need for the next packaging :)
I see, I see!
> ATM it is manual. There's a multitude of ways of
> pre-definining Python dependancies and none so far has
> piqued my interest sufficiently. Ne'erthelesse would I be
> willing to include contributed (heh :) infrastructure code
> to that end, especially if it works towards enabling users
> to setup a systemwide venv for the gnumed client.
Will look into this... :)
María
</pre>
</body>
</html>
--------------6z4ZDHuB0w1UBy4DCSjMoiT0--