health
[Top][All Lists]
Advanced

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

Re: [Health] Various problems....


From: euan livingstone
Subject: Re: [Health] Various problems....
Date: Mon, 18 Jul 2016 12:54:28 +0100

Hi Chris,

Thanks for you reply.  Moving the run_server.py up a folder and editing the config file has worked and I now have a working FHIR server.
 
 I had edited the 'ProductionConfig' class but had left the 'DebugConfig' class with the default settings, but by editing this to match the 'ProductionConfig' I was able to get the server to run.
 
Cheers,
 
Euan. 
 
> Date: Fri, 15 Jul 2016 13:47:39 -0700
> From: address@hidden
> To: address@hidden
> Subject: Re: [Health] Various problems....
>
> Hiya!
>
> Sorry about the delay in responding!
>
> On 07/13/16, Luis Falcon wrote:
> > Hi Euan !
> >
> > Sorry for the late reply ! Been busy today with the release of 3.0.2 :)
> >
> > On Tue, 12 Jul 2016 15:55:01 +0100
> > euan livingstone <address@hidden> wrote:
> >
> > > I have managed to get past this error. I had to edit the
> > > run_server.py file, changing the lines 'from server import
> > > create_app, from server.config import ProductionConfig' to 'from app
> > > import create_app, from config import ProductionConfig'. I also had
> > > to edit a line in the app.py file from 'from server.common
> > > import .........' to 'from common import .........'. This has got me
> > > past this error but is now presenting me with a new error, now when I
> > > run the run_server.py file it says: IOError: Database
> > > "gnuhealth_demo_test.sqlite" doesn't exist! Can anyone offer me any
> > > clues as to what might be wrong? Cheers, Euan.
>
> Maybe I need to clear up the documentation about the script since I am
> realizing it can be confusing.
>
> The python script is shipped in the server/ folder.
>
> However, it should be moved to the directory above the server/ folder.
>
> That is, /folder/above/run_server.py and /folder/above/server/*.
>
> Consequently, when you run it: $ python run_server.py
>
> The script imports from the server folder (= from server import create_app).
>
> What I believe is happening is that the config file is not properly
> being imported and/or not properly configured to find the trytond.conf
> file.
>
> All the best,
>
> -C
>
>
> >
> > It really looks like a corrupted installation. It should pretty much
> > run out of the box with Chris documentation[1]
> >
> >
> > We're running it live on the latest GNU Health (3.0.2) on the community
> > server, so you might want to take a look[2]
> >
> > BTW, for upcoming 3.2, as Chris mentioned, we're re-designing the
> > approach for HL7 FHIR integration especially with the concept of
> > Federation.
> >
> > More soon !
>
>
>
> >
> >
> > 1.- https://en.wikibooks.org/wiki/GNU_Health/FHIR_REST_server
> > 2.- https://en.wikibooks.org/wiki/GNU_Health/Using_the_FHIR_REST_server
>
> Hi
>
> >
> > All the best
> > Luis
> >
> >
> > --
> > Dr. Luis Falcon, M.D., BSc
> > President, GNU Solidario
> > GNU Health: Freedom and Equity in Healthcare
> > http://health.gnu.org
> >
> >
>

reply via email to

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