gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] <bug>: erstaufruf


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] <bug>: erstaufruf
Date: Fri, 5 Sep 2008 16:48:23 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Wolle,

thanks for your report.

Let's examine the log:

> 2008-09-05 15:53:03  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::add_cli() #377): 
> raw command line is:
> 2008-09-05 15:53:03  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::add_cli() #378): 
> ['/usr/lib/python2.5/site-packages/Gnumed/wxpython/gnumed.py', 
> '--conf-file=/etc/gnumed/gnumed-client.conf']

This should work but smells of trouble. Try running w/o the
--conf-file or if you must with --conf-file set to
/home/wolle/.gnumed./gnumed.conf (but that really shouldn't
be necessary).

> 2008-09-05 15:53:03  INFO      gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::add_file_source()
>  #346): file source "system": /etc/gnumed/gnumed-client.conf (UTF8)
> 2008-09-05 15:53:03  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::parse_INI_stream()
>  #197): parsing INI-style data stream [<open file 
> u'/etc/gnumed/gnumed-client.conf', mode 'rUb' at 0x81992a8>]
> 2008-09-05 15:53:03  INFO      gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::add_file_source()
>  #346): file source "user": /home/wolle/.gnumed/gnumed.conf (UTF8)
> 2008-09-05 15:53:03  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::parse_INI_stream()
>  #197): parsing INI-style data stream [<open file 
> u'/home/wolle/.gnumed/gnumed.conf', mode 'rUb' at 0x81992a8>]

Those two exist. Great. Do try not using --conf-file and
GNUmed should just find them, too.

> 2008-09-05 15:53:03  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::get() #312): 
> option [cli::--conf-file] found in source [cli]
> 2008-09-05 15:53:03  INFO      gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::add_file_source()
>  #346): file source "explicit": /etc/gnumed/gnumed-client.conf (UTF8)
> 2008-09-05 15:53:03  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::parse_INI_stream()
>  #197): parsing INI-style data stream [<open file 
> '/etc/gnumed/gnumed-client.conf', mode 'rUb' at 0x81992a8>]

Yes, it's doing double-duty -- but that shouldn't harm
anything, really.

> 2008-09-05 15:53:04  INFO      gm.main 
> (/usr/lib/python2.5/site-packages/Gnumed/wxpython/gmGuiMain.py::<module>() 
> #78): wxPython GUI framework: 2.8.4.0 ('__WXGTK__', 'wxGTK', 'unicode', 
> 'gtk2', 'wx-assertions-off', 'SWIG-1.3.29')

What is your system ? My Debian/Testing shows 2.8.7 (but
that shouldn't matter).

> 2008-09-05 15:53:04  INFO      gm.main 
> (/usr/lib/python2.5/site-packages/Gnumed/wxpython/gmGuiMain.py::<module>() 
> #79): GNUmed client version [0.3.1] on branch [0.3]

:-)

> 2008-09-05 15:53:04  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::get() #312): 
> option [cli::--conf-file] found in source [cli]
> 2008-09-05 15:53:04  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::get() #312): 
> option [internal::user_preferences_file] found in source [internal]

This may become a source of trouble: an explicit config file
is given on the command line but that file isn't writable.
Now, there IS code to deal with that but it probably isn't a
good idea to run that way.

> 2008-09-05 15:53:04  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::get() #310): 
> option [logins] not in group [backend] in source [explicit]
> 2008-09-05 15:53:04  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::get() #310): 
> option [logins] not in group [backend] in source [user]
> 2008-09-05 15:53:04  DEBUG     gm.cfg 
> (/usr/lib/python2.5/site-packages/Gnumed/pycommon/gmCfg2.py::get() #310): 
> option [logins] not in group [backend] in source [workbase]

GNUmed looks for this option in all the config sources it
assumes to be writable (because its the list of previously
used logins) but it then fails to properly deal with when
there are none found:


> 2008-09-05 15:53:04  DEBUG     gm.gui 
> (/usr/lib/python2.5/site-packages/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #45): unhandled exception caught:

>   File "/usr/lib/python2.5/site-packages/Gnumed/wxpython/gmAuthWidgets.py", 
> line 357, in __init__
>     self.__previously_used_accounts[0],
> IndexError: list index out of range

I have put in a fix both in CVS and 0.3.2.

I suggest doing this for now:

- edit /home/wolle/.gnumed/gnumed.conf
- under group [backend] add:

logins = $logins$
any-doc
$logins$

- run GNUmed without --conf-file

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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