[Top][All Lists]

[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: Tue, 13 Jan 2015 09:15:10 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Jan 12, 2015 at 11:47:33PM +0000, Jim Busser wrote:

> I have run into problems trying to upgrade to server 20.0 and am not sure how 
> much was a result of my own mistakes or if there may be a problem in the 
> server files.
> My first problem was my losing track (in my notes) of the appropriate syntax 
> because, from inside
>    /Users/djb/Downloads/gnumed-server.20.0/server/bootstrap/
> I issued the command
>       sh ./ 20

To upgrade you'd have to run

        sh ./ 19 20

but the problem below doesn't have to do with that.

>     Traceback (most recent call last):
>       File "./", line 74, in <module>
>         from Gnumed.pycommon import gmCfg2, gmPsql, gmPG2, gmTools, gmI18N
>       File 
> "/Users/djb/Downloads/gnumed-server.20.0/Gnumed/pycommon/", line 
> 2057, in <module>
>         psycopg2.extensions.register_adapter(dict, psycopg2.extras.Json)
>     AttributeError: 'module' object has no attribute 'Json'

There's two options:

        - comment out the "psycopg2.extensions.register_adapter(dict, 
psycopg2.extras.Json)" line
        - upgrade the psycopg2 python module to version 2.5 (bugs have been 
fixed there, too)

I will do the former for 1.5.1/v20.1 which should appear this week.

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

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