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 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


reply via email to

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