gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] Problems with gmPG.py


From: Ian Haywood
Subject: [Gnumed-devel] Problems with gmPG.py
Date: Tue, 01 Feb 2005 22:11:58 +1100
User-agent: Mozilla Thunderbird 0.8 (X11/20041012)

Please enter the required login parameters:                       ????? What's 
going on here ??????
host [localhost]:
database [gnumed]:
user name: any-doc
password (not shown):
port [5432]:
Fixed this, the problem was in gmBusinessDBObject trying to "jump the gun" in 
connecting to the
backend,

I'd like to raise some other issues/questions from my rather large error log:
> [PANIC] (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmPG.py:address@hidden): 
OperationalError: ERROR:  Cannot set current language to [en_AU]. No translations 
available.<#10-0x0A-lf><#10-0x0A-lf>
How can this be fixed? IOW, how do we register server-side translations?


> [WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
config file [/home/ian/.gnumed/config-definitions/gnumed.conf.definitions] not 
found
> [WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
config file [/home/ian/.config-definitions/gnumed.conf.definitions] not found
> [WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
config file [/etc/gnumed/config-definitions/gnumed.conf.definitions] not found
> [WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
config file [/etc/config-definitions/gnumed.conf.definitions] not found
> [WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
config file 
[/home/ian/gnumed/gnumed/client/wxpython/config-definitions/gnumed.conf.definitions]
 not found
> [ERROR] (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
cannot find config file in any of the standard paths
This files exist in /home/ian/gnumed/gnumed/client/etc/
gmCfg should be able to look in the auto-detected resource path (gb = gmGuiBroker (), 
then  "gb['gnumed_dir']" like every other package.
Also these log levels should be downgraded (the path-searching commentary should be 
"INFO")
If no-one objects, I can try to fix this myself, although I have often been 
lost in the thick forest that is gmCfg ;-)
> [WARN]  
(/home/ian/gnumed/gnumed/Gnumed/pycommon/gmConfigCommon.py:address@hidden): 
Unhandled exception while opening config file 
[config-definitions/gnumed.conf.definitions]
> [WARN]  
(/home/ian/gnumed/gnumed/Gnumed/pycommon/gmConfigCommon.py:address@hidden): 
exception type : exceptions.IOError
> [WARN]  
(/home/ian/gnumed/gnumed/Gnumed/pycommon/gmConfigCommon.py:address@hidden): 
exception value: cannot find config file
> [WARN]  
(/home/ian/gnumed/gnumed/Gnumed/pycommon/gmConfigCommon.py:address@hidden): No 
definition source found for gnumed.conf

Same again, I assume.
> [WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): option 
definition for [<config file example 
workplace>-xxxDEFAULTxxx-None-widgets.demographics.patientlist.column_sizes] not in
> [WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
option definition for 
[None-xxxDEFAULTxxx-None-widgets.demographics.patientlist.column_sizes] not in 
config database
And many similar. Hilmar, are these just a consequence of the above?


> [PANIC] 
(/home/ian/gnumed/gnumed/Gnumed/wxpython/gmPatPicWidgets.py:address@hidden): 
exception type : exceptions.TypeError
> [PANIC] 
(/home/ian/gnumed/gnumed/Gnumed/wxpython/gmPatPicWidgets.py:address@hidden): 
exception value: new_BitmapFromImage() takes at least 1 argument (0 given)
This is weird. Can someone running wx 2.4 confirm what I suspect (that it's a 
2.5-specific problem), and I'll add an appropriate if statement

Ian

--- Begin Message --- Subject: Problems with gmPG.py Date: Tue, 01 Feb 2005 19:48:03 +1100 User-agent: Mozilla Thunderbird 0.8 (X11/20041012)
address@hidden:~/gnumed/gnumed/client$ ./gm-from-cvs.sh
create symbolic link `Gnumed' to `client'
removed `gm-from-cvs.log'
log file is [/home/ian/gnumed/gnumed/client/gm-from-cvs.log]
Activating verbose log level for debugging.
Determining GnuMed base directory ...
- environment variable GNUMED_DIR not set
  (only necessary if nothing else works, though)
- standard path [/usr/share/gnumed/] not accessible
- seems like we are running from an arbitrary
  directory (like a CVS tree or on Windows)
Determining GnuMed resource directory ...
[WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
group [client] not found
- standard resource path [/usr/share/gnumed/] not accessible
- seems like we are running from an arbitrary
  directory (like a CVS tree or on Windows)

Please enter the required login parameters:                       ????? What's 
going on here ??????
host [localhost]:
database [gnumed]:
user name: any-doc
password (not shown):
port [5432]:
[WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmPG.py:address@hidden): 
client encoding not specified, this may lead to data corruption in some cases
[WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): option 
<client encoding> not found in group [backend]
WARNING: option <client encoding> not set in config file
[WARN]  (/home/ian/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py:address@hidden): you 
need to set the parameter <client encoding> in the config file
[WARN]  (/home/ian/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py:address@hidden): on Linux 
you can determine a likely candidate for the encoding by running "locale 
charmap"
[WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
group [workplace] not found
[WARN]  
(/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:address@hidden): 
section [profile local] not found in config file
[ERROR] 
(/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:address@hidden): no 
valid profile information in config file, using builtin defaults
[ERROR] (/home/ian/gnumed/gnumed/Gnumed/wxpython/gmGuiHelpers.py:address@hidden): No valid profile information found in configuration file. Please refer to the example configuration file at [<gnumed installation dir>/client/etc/] for information on how profiles should be specified. Falling back to default profile using local server.
-------------------
Configuration Error
-------------------
No valid profile information found in configuration file.            ???? I am 
using the example in gnumed/client/etc/
Please refer to the example configuration file at                    ???? Can 
someone please post a *working* config file
[<gnumed installation dir>/client/etc/] for information
on how profiles should be specified.

Falling back to default profile using local server.

Please consult the error log for all the gory details !
[WARN]  (/home/ian/gnumed/gnumed/Gnumed/pycommon/gmCfg.py:address@hidden): 
group [workplace] not found
You should name this workplace to better identify the machine !
To do this set the option "name" in the group [workplace] in the config file !
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:121: 
DeprecationWarning: AddWindow is deprecated, use `Add` instead.
  self.pboxgrid.AddWindow( label, 0, wx.wxALIGN_CENTER_VERTICAL|wx.wxALL, 5 )
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:131: 
DeprecationWarning: AddWindow is deprecated, use `Add` instead.
  self.pboxgrid.AddWindow( self.profilecombo, 0, 
wx.wxGROW|wx.wxALIGN_CENTER_VERTICAL|wx.wxALL, 5 )
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:136: 
DeprecationWarning: AddWindow is deprecated, use `Add` instead.
  self.pboxgrid.AddWindow( label, 0, wx.wxALIGN_CENTER_VERTICAL|wx.wxALL, 5 )
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:146: 
DeprecationWarning: AddWindow is deprecated, use `Add` instead.
  self.pboxgrid.AddWindow( self.usercombo, 0, 
wx.wxGROW|wx.wxALIGN_CENTER_VERTICAL|wx.wxALL, 5 )
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:151: 
DeprecationWarning: AddWindow is deprecated, use `Add` instead.
  self.pboxgrid.AddWindow( label, 0, wx.wxALIGN_CENTER_VERTICAL|wx.wxALL, 5 )
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:155: 
DeprecationWarning: AddWindow is deprecated, use `Add` instead.
  self.pboxgrid.AddWindow( self.pwdentry, 0, 
wx.wxGROW|wx.wxALIGN_CENTER_VERTICAL|wx.wxALL, 5 )
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:198: 
DeprecationWarning: AddSizer is deprecated, use `Add` instead.
  self.paramsboxsizer.AddSizer(self.pboxgrid, 1, wx.wxGROW|wx.wxALL, 10)
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:199: 
DeprecationWarning: AddSizer is deprecated, use `Add` instead.
  self.topsizer.AddSizer(self.paramsboxsizer, 1, wx.wxGROW|wx.wxALL, 10)
/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLoginDialog.py:200: 
DeprecationWarning: AddSizer is deprecated, use `Add` instead.
  self.topsizer.AddSizer( self.button_gridsizer, 0, 
wx.wxGROW|wx.wxALIGN_CENTER_VERTICAL|wx.wxALL, 5 )
[PANIC] (wxpython/gnumed.py:address@hidden): Exception: Unhandled exception 
encountered.
[PANIC] (wxpython/gnumed.py:address@hidden): exception type : 
exceptions.KeyError
[PANIC] (wxpython/gnumed.py:address@hidden): exception value: 'default'
[PANIC] (wxpython/gnumed.py:address@hidden): Traceback (most recent call 
last):<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File "wxpython/gnumed.py", line 312, in 
?<#10-0x0A-lf>    gmGuiMain.main()<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File 
"/home/ian/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py", line 630, in 
main<#10-0x0A-lf>    app = gmApp(0)<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File "wx/_core.py", line 5301, in 
__init__<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File "wx/_core.py", line 4980, in 
_BootstrapApp<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File 
"/home/ian/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py", line 462, in 
OnInit<#10-0x0A-lf>    self.__backend = gmLogin.Login()<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File 
"/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLogin.py", line 44, in Login<#10-0x0A-lf>  
  backend = gmPG.ConnectionPool(login)<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File 
"/home/ian/gnumed/gnumed/Gnumed/pycommon/gmPG.py", line 139, in __init__<#10-0x0A-lf> 
   self.__disconnect()<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden):   File 
"/home/ian/gnumed/gnumed/Gnumed/pycommon/gmPG.py", line 488, in 
__disconnect<#10-0x0A-lf>    if ConnectionPool.__conn_use_count[key] > 0 :<#10-0x0A-lf>
[PANIC] (wxpython/gnumed.py:address@hidden): KeyError: 'default'<#10-0x0A-lf>
Traceback (most recent call last):
  File "wxpython/gnumed.py", line 312, in ?
    gmGuiMain.main()
  File "/home/ian/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py", line 630, in 
main    app = gmApp(0)
  File "wx/_core.py", line 5301, in __init__
  File "wx/_core.py", line 4980, in _BootstrapApp
  File "/home/ian/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py", line 462, in 
OnInit
    self.__backend = gmLogin.Login()
  File "/home/ian/gnumed/gnumed/Gnumed/wxpython/gmLogin.py", line 44, in Login
    backend = gmPG.ConnectionPool(login)
  File "/home/ian/gnumed/gnumed/Gnumed/pycommon/gmPG.py", line 139, in __init__
    self.__disconnect()
  File "/home/ian/gnumed/gnumed/Gnumed/pycommon/gmPG.py", line 488, in 
__disconnect
    if ConnectionPool.__conn_use_count[key] > 0 :
KeyError: 'default'

I'm stumped. I don't think this is related to my changes (it might be, I've no 
idea how)


Ian

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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