health-es
[Top][All Lists]
Advanced

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

Re: [Health-es] Cargar Paciente a GNU Health mediante Proteus


From: Luis Falcon
Subject: Re: [Health-es] Cargar Paciente a GNU Health mediante Proteus
Date: Wed, 05 Mar 2014 10:20:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Hola Germán
On 04/03/14 18:47, address@hidden wrote:
> Hola Luis:
>                 Gracias por la ayuda. Con respecto al path a Python
> estoy usando el comando con la ruta que me sugeriste:
> export PYTHONPATH="/home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/"
> Pero el problema persiste por lo cual supongo que este no es el problema.
> Con respecto a la versión de proteus que estoy usando. Te cuento que
> primeramente instalé proteus con el comando “pip install --user proteus”
> (como usuario root) pero al ejecutar el script me decía que proteus no
> estaba instalado. Entonces lo instale nuevamente pero con el comando
> “apt-get install tryton-proteus” (como usuario root) y cuando ejecuto el
> script me sale el error que está en el mail anterior. Para examinar la
> versión de proteus revise ambas y a continuación veras las salidas:
> # apt-show-versions | grep proteus
> tryton-proteus/raring uptodate 2.2.2-4
> # pip freeze | grep proteus
> proteus==3.0.0
>  
> Según entiendo estoy usando la versión 2.2.2-4 ya que la que instale con
> “pip” primeramente no me funcionó.
> ¿Podrá ser este el problema?
Lo mejor es que elimines versiones de tryton y proteus viejas (con purge
;-) ) , porque suelen generar problemas.

Quédate con la de pip actualizada y avisanos.

Saludos !


> Saludos cordiales.
> Germán
>  
>> Date: Tue, 4 Mar 2014 10:24:55 +0000
>> From: address@hidden
>> To: address@hidden
>> Subject: Re: [Health-es] Cargar Paciente a GNU Health mediante Proteus
>> 
>> Buenos días Germán !
>> 
>> On 03/03/14 23:20, Germán Luis Stahringer wrote:
>> > Hola Luis:
>> > Te escribo para consultarte, ya que he probado con tu
>> > consejo, actualice GNU Health a su última versión y también el cliente y
>> > servidor. Básicamente empece de cero e instale la versión nueva. Luego
>> > de probar que este andando normalmente el soft, instale el paquete de
>> > proteus, setié la ruta a las librerías de tryton y probé el script.
>> > Tanto el script "health_demo_server.py" como el que programé yo me tiran
>> > el siguiente error:
>> > /Traceback (most recent call last):/
>> > / File "prueba.py", line 18, in <module>/
>> > / 
>> >
> config_file='/home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/etc/trytond.conf')/
>> > / File "/usr/lib/python2.7/dist-packages/proteus/config.py", line 187,
>> > in set_trytond/
>> > / language=language, password=password, config_file=config_file)/
>> > / File "/usr/lib/python2.7/dist-packages/proteus/config.py", line 114,
>> > in __init__/
>> > / from trytond.backend import Database/
>> > /ImportError: cannot import name Database/
>> > 
>> Pareciera que no está encontrando el path correcto de python . Fíjate
>> que PYTHONPATH esté apuntando bien
>> 
>> export PYTHONPATH="/home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/"
>> 
>> Por otro lado, qué versión de proteus tienes instalada ?
>> 
>> Cualquier cosa avisa, escribe a address@hidden . Ya le vamos a
>> encontrar donde se trabó :)
>> 
>> Saludos !
>> 
>> > Disculpa las molestias... Pero si tenes una idea de porque puede ser que
>> > no me estén funcionando los scripts de python te agradecería.
>> > Saludos cordiales,
>> > Germán
>> > 
>> >> Date: Tue, 25 Feb 2014 12:42:06 +0000
>> >> From: address@hidden
>> >> To: address@hidden
>> >> Subject: Re: [Health-es] Cargar Paciente a GNU Health mediante Proteus
>> >>
>> >> Hola Germán
>> >>
>> >> On 24/02/14 20:40, Germán Luis Stahringer wrote:
>> >> > Estimado Luis:
>> >> > Muchas gracias por tu ayuda. En el ejemplo de tu
>> >> > segundo mensaje logré comprender el error que tenía. Resulta que yo me
>> >> > estaba basando en el wikibook en español:
>> >> > https://es.wikibooks.org/wiki/GNU_Health/Base_de_datos_Demo
>> >> > En el cual no menciona el ejemplo:
>> >> > /export
>> > PYTHONPATH="/home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/"/
>> >> > El cual me pasaste vos y esta en el wikibook en ingles. Yo erróneamente
>> >> > interpretaba que ruta era al servidor Tryton, en mi caso:
>> >> > “/home/gnuhealth/gnuhealth/tryton/server/trytond-2.8.4/bin”
>> >> > Además me percaté de que tenía que correr el script de python con el
>> >> > usuaro “gnuhealth” ya que todas las dependencias estaban instaladas
> para
>> >> > este usuario.
>> >>
>> >> Estás en una versión antigua de Tryton (2.8.4). GNU Health 2.4 es
>> >> compatible con Tryton 3.0.x .
>> >>
>> >> Asegúrate de utilizar el instalador de gnuhealth (gnuhealth_install.sh)
>> >> y eliminar versiones antiguas del servidor de Tryton que te puedan
>> >> generar problemas.
>> >>
>> >> Actualmente el instalador de GNU Health descarga Tryton 3.0.2
>> >>
>> >> Saludos .
>> >>
>> >> >
>> >> > Sin embargo, quedando solucionado este problema, al correr el script me
>> >> > tirá el siguiente error:
>> >> > /No handlers could be found for logger "party"/
>> >> >
>> >
> //home/gnuhealth/gnuhealth/tryton/server/trytond-2.8.4/trytond/model/modelstorage.py:1306:
>> >> > DeprecationWarning: With-statements now directly support multiple
>> >> > context managers/
>> >> > / Transaction().set_context(self._context)):/
>> >> >
>> >
> //home/gnuhealth/gnuhealth/tryton/server/trytond-2.8.4/trytond/ir/rule.py:210:
>> >> > DeprecationWarning: With-statements now directly support multiple
>> >> > context managers/
>> >> > / Transaction().set_context(user=0)):/
>> >> >
>> >
> //home/gnuhealth/gnuhealth/tryton/server/trytond-2.8.4/trytond/ir/rule.py:252:
>> >> > DeprecationWarning: With-statements now directly support multiple
>> >> > context managers/
>> >> > / Transaction().set_context(active_test=False, user=0)):/
>> >> >
>> >
> //home/gnuhealth/gnuhealth/tryton/server/trytond-2.8.4/trytond/model/fields/reference.py:69:
>> >> > DeprecationWarning: With-statements now directly support multiple
>> >> > context managers/
>> >> > / Transaction().set_user(0)):/
>> >> > /Traceback (most recent call last):/
>> >> > / File "prueba.py", line 68, in <module>/
>> >> > / party.save()/
>> >> > / File
>> >> >
>> >
> "/home/gnuhealth/.local/lib/python2.7/site-packages/proteus/__init__.py", line
>> >> > 649, 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/gnuhealth/tryton/server/trytond-2.8.4/trytond/modules/health/health.py",
>> >> > line 960, in create/
>> >> > / vlist = [x.copy() for x in vlist]/
>> >> > /AttributeError: 'str' object has no attribute 'copy'/
>> >> >
>> >> > Por lo que entiendo habría un problema en la función “create “ del
>> >> > módulo “health”. Pensando que el error podía estar en el código que
>> >> > escribí decidí probar de ejecutar el script “health_demo_server.py” y
>> >> > devolvió el mismo mensaje de error. Buscando en internet encontré
>> >> >
>> >
> (http://stackoverflow.com/questions/11837515/beautifulsoup-attributeerror-str-object-has-no-attribute-copy-works-on-ub)
>> >> > que el error podía deberse a la versión instalada de Beautiful Soup
>> >> > (estaba instalada la versión: 3.2.1-1) probé de instalar la versión 4
>> >> > (pip install beautifulsoup4) pero el problema persiste.
>> >> >
>> >> > Me podrías orientar por favor?
>> >> >
>> >> > Desde ya muchas gracias!
>> >> > Saludos cordiales,
>> >> > Germán
>> >> >
>> >>
>> >> --
>> >> GNU Health : The Free Health and Hospital Information System
>> >> http://health.gnu.org
>> >> Twitter: @gnuhealth
>> 
>> -- 
>> GNU Health : The Free Health and Hospital Information System
>> http://health.gnu.org
>> Twitter: @gnuhealth


-- 
GNU Health : The Free Health and Hospital Information System
http://health.gnu.org
Twitter: @gnuhealth



reply via email to

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