[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <bug>: GNUmed does not start: error loading instance.
From: |
Karsten Hilbert |
Subject: |
Re: <bug>: GNUmed does not start: error loading instance. |
Date: |
Fri, 25 Oct 2019 23:02:25 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Hi Jello Mous,
thanks for your report.
> client version: 1.7.7
>
> system account: jelle
> staff member : Jelle Mous (JeMo = jemo)
The problem you are seeing:
> 2019-10-25 17:49:23 ERROR gm.db [139983749248832 MainThread]
> (/usr/share/gnumed/Gnumed/pycommon/gmBusinessDBObject.py::refetch_payload()
> #619): [cTestPanel:1]: no such instance
> 2019-10-25 17:49:23 ERROR gm.gui [139983749248832 MainThread]
> (/usr/share/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
> #248): enabling debug mode
> 2019-10-25 17:49:23 DEBUG gm.gui [139983749248832 MainThread]
> (/usr/share/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
> #252): unhandled exception caught:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
> "__main__", fname, loader, pkg_name)
> File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
> exec code in run_globals
> File "/usr/share/gnumed/Gnumed/gnumed.py", line 786, in <module>
> exit_code = run_gui()
> File "/usr/share/gnumed/Gnumed/gnumed.py", line 660, in run_gui
> gmGuiMain.main()
> File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 4144, in main
> app = gmApp(redirect = False, clearSigInt = False)
> File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_core.py", line 8628,
> in __init__
> self._BootstrapApp()
> File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_core.py", line 8196,
> in _BootstrapApp
> return _core_.PyApp__BootstrapApp(*args, **kwargs)
> File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 3617, in OnInit
> frame = gmTopLevelFrame(None, -1, title = _('GNUmed client'), size =
> (640, 440))
> File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 235, in __init__
> self.LayoutMgr = gmHorstSpace.cHorstSpaceLayoutMgr(self, -1)
> File "/usr/share/gnumed/Gnumed/wxpython/gmHorstSpace.py", line 63, in
> __init__
> self.top_panel = gmTopPanel.cTopPnl(self, -1)
> File "/usr/share/gnumed/Gnumed/wxpython/gmTopPanel.py", line 57, in __init__
> self.__init_ui()
> File "/usr/share/gnumed/Gnumed/wxpython/gmTopPanel.py", line 85, in
> __init_ui
> self.__lab_panel = gmPathLab.cTestPanel(aPK_obj = pk_panel)
> File "/usr/share/gnumed/Gnumed/pycommon/gmBusinessDBObject.py", line 321,
> in __init__
> self.__init_from_pk(aPK_obj = aPK_obj, link_obj = link_obj)
> File "/usr/share/gnumed/Gnumed/pycommon/gmBusinessDBObject.py", line 349,
> in __init_from_pk
> raise gmExceptions.ConstructorError, "[%s:%s]: error loading instance" %
> (self.__class__.__name__, self.pk_obj)
> ConstructorError: [cTestPanel:1]: error loading instance
happens because GNUmed fails to appreciate the fact that a
test panel (battery of tests) once configured to be shown in
the top panel of the GNUmed client may get deleted from the
database later on. When this happens GNUmed throws up its
hands in despair rather than gracefully work around the
situation.
The issue can fairly easily be fixed by deleting the
"horstspace.top_panel.lab_panel" option from the database.
Let me know if you need help with that.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B