health-dev
[Top][All Lists]
Advanced

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

Re: [Health-dev] gnuhealth_demo script


From: Sebastián Marró
Subject: Re: [Health-dev] gnuhealth_demo script
Date: Tue, 25 Jun 2013 12:58:50 -0300

Hi Kaushik

2013/6/25 Kaushik <address@hidden>

Dear all,
        I ran the health_demo_server.py and it seemed to get completed. However, I don't see any patients. If I goto Health->Patients->Patients, I don't see a single entry.
However, connecting to the online demo database, under the same menu I can see Ana betz and her family.

So, I am not sure if the demo database got installed correctly.  I see some products have been added (like halothane, isoflurane etc).

The following is the output from the script health_demo_server.py.   Do you think the script worked as expected.  Is it ok if no patients are present.


No handlers could be found for logger "party"
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/model/modelstorage.py:1285: DeprecationWarning: With-statements now directly support multiple context managers
Transaction().set_context(self._context)):
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/model/fields/reference.py:68: DeprecationWarning: With-statements now directly support multiple context managers
Transaction().set_user(0)):
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/ir/rule.py:223: DeprecationWarning: With-statements now directly support multiple context managers
Transaction().set_context(user=0)):
/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/modules/__init__.py:364: DeprecationWarning: With-statements now directly support multiple context managers
with contextmanager:
Traceback (most recent call last):
File "health_demo_server.py", line 189, in <module>
LoadBetzFamilyInfo()
File "health_demo_server.py", line 66, in LoadBetzFamilyInfo
party.save()
File "/home/gnuhealth/.local/lib/python2.7/site-packages/proteus/__init__.py", line 662, in save
self.__id, = self._proxy.create([values], context)
File "/home/gnuhealth/.local/lib/python2.7/site-packages/proteus/config.py", line 144, in __call__
result = rpc.result(meth(*args, **kwargs))
File "/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/modules/health/health.py", line 578, in create
return super(PartyPatient, cls).create(values)
File "/home/gnuhealth/tryton/tryton_2_6/server/trytond-2.6.3/trytond/modules/party/party.py", line 159, in create
values = values.copy()
AttributeError: 'list' object has no attribute 'copy'


The script raised an error (the error information starts with Traceback)

Maybe you have Proteus 2.8, and for this script you need Proteus 2.6

Try with this command:
$ pip install --user proteus==2.6
And then you can execute the script again.

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]