gnumed-bugs
[Top][All Lists]
Advanced

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

Re: [Gnumed-bugs] <bug>: after connecting to public server, crash be


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] <bug>: after connecting to public server, crash be
Date: Fri, 29 Sep 2017 23:47:44 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Hi Christian,

thanks for your report.

> user comment  : after connecting to public server, crash before splash screen
> 
> client version: 1.6.14

The problem you are seeing:

> 2017-09-28 23:04:10  DEBUG     gm.gui 
> (/usr/share/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #219): 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 717, in <module>
>     gmGuiMain.main()
>   File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 4023, in main
>     app = gmApp(redirect = False, clearSigInt = False)
>   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, 
> in __init__
>     self._BootstrapApp()
>   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, 
> in _BootstrapApp
>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>   File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 3479, in OnInit
>     if not self.__establish_backend_connection():
>   File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 3650, in 
> __establish_backend_connection
>     require_version = not override
>   File "/usr/share/gnumed/Gnumed/wxpython/gmAuthWidgets.py", line 225, in 
> connect_to_database
>     seems_bootstrapped = gmPG2.schema_exists(schema = 'gm')
>   File "/usr/share/gnumed/Gnumed/pycommon/gmPG2.py", line 794, in 
> schema_exists
>     rows, idx = run_ro_queries(link_obj = link_obj, queries = [{'cmd': cmd, 
> 'args': args}])
>   File "/usr/share/gnumed/Gnumed/pycommon/gmPG2.py", line 1679, in 
> run_ro_queries
>     conn = get_connection(readonly=True, verbose=verbose)
>   File "/usr/share/gnumed/Gnumed/pycommon/gmPG2.py", line 2151, in 
> get_connection
>     [ _log.debug(line) for line in capture_conn_state(conn = 
> conn).split(u'\n') ]
>   File "/usr/share/gnumed/Gnumed/pycommon/gmPG2.py", line 1563, in 
> capture_conn_state
>     u'deferrable': conn.deferrable,
> AttributeError: 'DictConnection' object has no attribute 'deferrable'

is due to the fact that psycopg2 changed the way it handles
readonly connections upon which I had to make some changes in
GNUmed which now requires psycopg2 2.7.3 but your Ubuntu has
got a lesser version installed:

> 2017-09-28 23:03:50  INFO      gm.db 
> (/usr/share/gnumed/Gnumed/pycommon/gmPG2.py::<module>() #52): psycopg2 
> version: 2.6.2 (dt dec mx pq3 ext lo64)

If you install a newer version things should start working.
If not, let me know.

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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