gnumed-bugs
[Top][All Lists]
Advanced

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

Re: [Gnumed-bugs] GNUmed 1.5.0 - 'module' object has no attribute 'Json'


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] GNUmed 1.5.0 - 'module' object has no attribute 'Json' - bug or user error ?
Date: Mon, 19 Jan 2015 10:35:28 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Sun, Jan 18, 2015 at 11:54:38PM +0000, Jim Busser wrote:

> I had hoped that an update of my MacPorts packages to include
> 
>             py26-psycopg2 @2.5.4_0+postgresql84 (active)
> 
> would allow the newest gnumed client 1.5.2 to run without my having to 
> disable line 22 in /client/business/gmKVK.py
> 
>       import simplejson as json
> 
> however if I enable the above line, the client hits this import error
> 
>       No module named simplejson

That's another python module (namely, simplejson), different
from psycopg2. During development of 1.5 it looked like we'd
use that but eventually we didn't but I forgot to remove that
line from gmKVK.py.

> so I would welcome any suggestions what to assess.
> 
> … does it make any difference whether the perviously-referenced line from 
> /server/pycommon/gmPG2.py
> 
>       psycopg2.extensions.register_adapter(dict, psycopg2.extras.Json)
> 
> was enabled vs disabled at the time that I ran ./upgrade-db.sh 19 20?

No.

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]