health-dev
[Top][All Lists]
Advanced

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

Re: [Health-dev] Problem running health_demo_server.py


From: Kaushik
Subject: Re: [Health-dev] Problem running health_demo_server.py
Date: Thu, 30 May 2013 22:37:33 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Hi Sebastian,
     I tried it and this is what I got -

$  python health_demo_server.py gnuhealh_demo
No handlers could be found for logger "party"
/home/gnuhealth/.local/lib/python2.7/site-packages/trytond/model/modelstorage.py:1285: DeprecationWarning: With-statements now directly support multiple context managers
  Transaction().set_context(self._context)):
/home/gnuhealth/.local/lib/python2.7/site-packages/trytond/model/fields/reference.py:68: DeprecationWarning: With-statements now directly support multiple context managers
  Transaction().set_user(0)):
/home/gnuhealth/.local/lib/python2.7/site-packages/trytond/ir/rule.py:223: DeprecationWarning: With-statements now directly support multiple context managers
  Transaction().set_context(user=0)):
/home/gnuhealth/.local/lib/python2.7/site-packages/trytond/modules/__init__.py:364: DeprecationWarning: With-statements now directly support multiple context managers
  with contextmanager:



Are these expected messages?. It seemed to get hung. Is there any log file that would provide more info on this? 
Thanks
Kaushik



On Thursday 30 May 2013 08:51 PM, Sebastián Marró wrote:
Hi Kaushik


2013/5/30 Blue Light <address@hidden>
Hi,
     I am facing problems installing the demo database locally. I am following the wiki - http://en.wikibooks.org/wiki/GNU_Health/The_Demo_database

a) The wiki says I should do the following.

$ python health_demo_server.py

But it does not say where this file is and how to get it.

b) I checked out the source by - hg clone http://hg.savannah.gnu.org/hgweb/health/

I found it under health/tryton/demo. I added the path to tryton server in python path and then executed the script - python health_demo_server.py .

I got the error -

"Usage: health_demo_server.py [options] <database name>

health_demo_server.py: error: Not enough args!"

Could you please tell me how to run this script correctly and install the demo database locally.


  You should run the script with: 

$ python health_demo_server.py gnuhealth_demo

  where gnuhealth_demo is the name of the database (you can change it)

  Let me know if you have any issue running the demo script.

  I will update now the wiki with the new script options.

  Best regards

--
Sebastián Marró
thymbr@
Converging Ideas for Emerging Realities

www.thymbra.com


reply via email to

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