health-dev
[Top][All Lists]
Advanced

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

[Health-dev] Problem in FHIR server installation.


From: Arpit Goel
Subject: [Health-dev] Problem in FHIR server installation.
Date: Sun, 22 Mar 2015 23:37:12 +0530

Hello,

I'm trying to install FHIR server for using REST web services by following the instructions at : http://en.wikibooks.org/wiki/GNU_Health/FHIR_REST_server .
It says to edit a config file "server/config.py". The file was present at "gnuhealth-2.8.1/backend/fhir". I copied the whole fhir folder in gnuhealth installation folder and had venv setup in it. After editing it, I ran "python run_server.py" and got the following error

python run_server.py
No handlers could be found for logger "party"
Traceback (most recent call last):
  File "run_server.py", line 11, in <module>
    app = create_app(config=ProductionConfig)
  File "/home/gnuhealth/gnuhealth/fhir/server/app.py", line 47, in create_app
    from server.resources.system import Conformance
  File "/home/gnuhealth/gnuhealth/fhir/server/resources/__init__.py", line 7, in <module>
    from server.resources.procedure import *
  File "/home/gnuhealth/gnuhealth/fhir/server/resources/procedure.py", line 12, in <module>
    amb_procedure = tryton.pool.get('gnuhealth.ambulatory_care_procedure')
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-3.4.2/trytond/pool.py", line 168, in get
    return self._pool[self.database_name][type][name]
KeyError: 'gnuhealth.ambulatory_care_procedure'

server/config.py : 

class ProductionConfig(object):
    """A basic production config
    """
    TRYTON_DATABASE = 'gnuhealth' #Data
    SECRET_KEY = 'qwertyuiop1234567890'    #Change
    SERVER_NAME = "localhost:8000"     #Set this
    TRYTON_CONFIG = '/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf'
 
    PREFERRED_URL_SCHEME='https'
    SESSION_COOKIE_SECURE = True
    SESSION_COOKIE_NAME = 'fhir'
    PERMANENT_SESSION_LIFETIME = 24*60*60 #seconds

    #Remember Me setup
    REMEMBER_COOKIE_NAME='fhir_remember_token'
    #REMEMBER_COOKIE_DURATION #default 1 year

class DebugConfig(object):
    """Testing settings"""
    TRYTON_DATABASE='gnuhealth_demo_test'
    DEBUG = True
    SECRET_KEY = 'test'
    WTF_CSRF_ENABLED=False
    SESSION_COOKIE_NAME = 'fhir'
    REMEMBER_COOKIE_NAME='fhir_remember_token'

Can anyone please help me with the error?
P.S : I'm new to Python.

reply via email to

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