[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: |
Busser, Jim |
Subject: |
Re: [Gnumed-bugs] GNUmed 1.5.0 - 'module' object has no attribute 'Json' - bug or user error ? |
Date: |
Fri, 16 Jan 2015 22:22:06 +0000 |
On 2015-01-13, at 12:15 AM, Karsten Hilbert <address@hidden> wrote:
> 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 ./fixup-db.sh 20
>
> To upgrade you'd have to run
>
> sh ./upgrade-db.sh 19 20
>
> but the problem below doesn't have to do with that.
>
>> Traceback (most recent call last):
>> File "./bootstrap_gm_db_system.py", line 74, in <module>
>> from Gnumed.pycommon import gmCfg2, gmPsql, gmPG2, gmTools, gmI18N
>> File
>> "/Users/djb/Downloads/gnumed-server.20.0/Gnumed/pycommon/gmPG2.py", 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.
I think the former escaped to happen?
Also, short of upgrading the adapter, cannot start the client until after in
~/Downloads/gnumed-client.1.5.2/client/business/gmKVK.py
commenting out line 22
#import simplejson as json
else get
.========================================================
.| Unhandled exception caught !
.| Type : <type 'exceptions.ImportError'>
.| Value: No module named simplejson
.`========================================================
.Traceback (most recent call last):
File "gnumed.py", line 641, in <module>
from Gnumed.wxpython import gmGuiMain
File "/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/wxpython/gmGuiMain.py",
line 93, in <module>
from Gnumed.wxpython import gmHorstSpace
File
"/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/wxpython/gmHorstSpace.py",
line 22, in <module>
from Gnumed.wxpython import gmPlugin, gmTopPanel, gmGuiHelpers
File
"/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/wxpython/gmTopPanel.py", line
29, in <module>
from Gnumed.wxpython import gmDemographicsWidgets
File
"/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/wxpython/gmDemographicsWidgets.py",
line 1470, in <module>
from Gnumed.wxGladeWidgets import wxgPersonSocialNetworkManagerPnl
File
"/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/wxGladeWidgets/wxgPersonSocialNetworkManagerPnl.py",
line 16, in <module>
from Gnumed.wxpython.gmPatSearchWidgets import cPersonSearchCtrl
File
"/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/wxpython/gmPatSearchWidgets.py",
line 40, in <module>
from Gnumed.business import gmKVK
File "/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/business/gmKVK.py",
line 22, in <module>
import simplejson as json
ImportError: No module named simplejson
MacBook-2:client djb$
-- JIm