gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-bugs] <bug>: Trying to import brands via Import button (


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] <bug>: Trying to import brands via Import button (
Date: Thu, 22 Sep 2011 11:21:51 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Sep 20, 2011 at 08:26:25PM -0400, Dr.Leonard Horatio McCoy wrote:

> user comment  : Trying to import brands via Import button (from within 
> Medication / Add / Brand / Import)
> 
> client version: 1.0.rc2

...

> 2011-09-20 17:21:52  DEBUG     gm.meds 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/business/gmMedication.py::switch_to_frontend()
>  #345): calling FreeDiams in [interactions] mode
> 2011-09-20 17:21:52  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #164): shell command >>>/Applications/FreeDiams.app/Contents/MacOs/FreeDiams 
> --exchange-in="/var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-m4zUAX/gm2freediams-1f7QTA.xml"<<<
> 2011-09-20 17:21:52  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #165): blocking: True
> 2011-09-20 17:21:52  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #166): acceptable return codes: [0]
> 2011-09-20 17:21:52  INFO      gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #196): running shell command 
> >>>/Applications/FreeDiams.app/Contents/MacOs/FreeDiams 
> --exchange-in="/var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-m4zUAX/gm2freediams-1f7QTA.xml"<<<
> 2011-09-20 17:22:08  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #199): os.system() returned: [6]

This should have returned 0, hence either a
crash/failure/bug in FreeDiams or ...

> 2011-09-20 17:22:08  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #211): exited via exit(): False
> 2011-09-20 17:22:08  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #216): dumped core: False
> 2011-09-20 17:22:08  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #217): stopped by signal: True

... FreeDiams was stopped in a non-standard way (control-c,
apple-kill, ...).

But then...

> 2011-09-20 17:22:08  DEBUG     gm.gui 
> (/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #152): unhandled exception caught:
> Traceback (most recent call last):
>   File 
> "/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/wxpython/gmListWidgets.py",
>  line 251, in _on_left_extra_button_pressed
>     if not self.__left_extra_button_callback(item_data):
>   File 
> "/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/wxpython/gmMedicationWidgets.py",
>  line 784, in add_from_db
>     drug_db.import_drugs()
>   File 
> "/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/business/gmMedication.py", 
> line 366, in import_drugs
>     self.switch_to_frontend(blocking = True)
>   File 
> "/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/business/gmMedication.py", 
> line 356, in switch_to_frontend
>     if not gmShellAPI.run_command_in_shell(command = cmd, blocking = 
> blocking):
>   File 
> "/Users/djb/Downloads/gnumed-client.1.0.rc2/Gnumed/pycommon/gmShellAPI.py", 
> line 219, in run_command_in_shell
>     _log.debug('STOP signal was: [%s]', os.STOPSIG(ret_val))
> AttributeError: 'module' object has no attribute 'STOPSIG'

... you also hit a bug in GNUmed while it is trying to
investigate the cause of the abnormal stop.

Fixed.

Thanks for reporting.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]