health-dev
[Top][All Lists]
Advanced

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

[Health-dev] help with this error


From: ronal gamarra
Subject: [Health-dev] help with this error
Date: Fri, 4 Sep 2015 03:02:42 +0000 (UTC)

greetings GNUHealth have recently installed in a virtual machine in VirtualBox to test it but I've run into several errors by solving I've been slowly, but one of them is this that put full then happens when trying to print a medication r├ęcipe:


Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 161, in dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/report/report.py", line 144, in execute
    type, data = "" records, data, {})
  File "/trytond/report/report.py", line 293, in parse
    data = "" class="">  File "/relatorio/templates/base.py", line 34, in render
    return self.serializer(self.events)
  File "/relatorio/templates/opendocument.py", line 855, in __call__
    for kind, data, pos in stream:
  File "/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "/genshi/filters/i18n.py", line 690, in __call__
    for kind, data, pos in stream:
  File "/genshi/template/base.py", line 618, in _include
    for event in stream:
  File "/genshi/template/markup.py", line 326, in _match
    for event in stream:
  File "/genshi/template/base.py", line 578, in _flatten
    result = _eval_expr(data, ctxt, vars)
  File "/genshi/template/base.py", line 289, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/genshi/template/eval.py", line 177, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "<string>", line 1, in <_expression_ u'formatLang(prescription.report_prescription_date, user.language)'>
  File "/genshi/template/eval.py", line 317, in lookup_attr
    val = getattr(obj, key)
  File "/trytond/report/report.py", line 172, in __getattr__
    return getattr(record, name)
  File "/trytond/model/fields/field.py", line 213, in __get__
    return inst.__getattr__(self.name)
  File "/trytond/model/modelstorage.py", line 1312, in __getattr__
    read_data = self.read(list(ids), ffields.keys())
  File "/trytond/model/modelsql.py", line 645, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 86, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 86, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 80, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 80, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/modules/health/health.py", line 3772, in get_report_prescription_date
    return datetime.astimezone(dt.replace(tzinfo=pytz.utc), timezone).date()
TypeError: astimezone() argument 1 must be datetime.tzinfo, not None


I am using Ubuntu 14.04 on VirtualBox and GNUHealth version is 2.8.1


I appreciate any guidance.

Att. Ronal
 

reply via email to

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