Hi,
as suggested by Luis, I share my testing results of GNU Health 3.6RC1+ (with some later patches applied).
First, during build (missing files resp. translations):
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_ems/doc/index.rst
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_iss/doc/index.rst
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/ar.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/de.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/el.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/es.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/fr.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/it_IT.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/ja_JP.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/lo.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/pt_BR.po
[ 167s] gnuhealth.noarch: W: zero-length /usr/lib/python3.6/site-packages/trytond/modules/health_services_lab/locale/zh_CN.po
and in general:
[ 167s] gnuhealth.noarch: E: env-script-interpreter (Badness: 9) /usr/share/doc/packages/gnuhealth/demo/install_demo_database.sh /usr/bin/env bash
[ 167s] This script uses 'env' as an interpreter. For the rpm runtime dependency
[ 167s] detection to work, the shebang #!/usr/bin/env python needs to be patched into
[ 167s] #!/usr/bin/python otherwise the package dependency generator merely adds a
[ 167s] dependency on /usr/bin/env rather than the actual interpreter /usr/bin/python.
[ 167s] Alternatively, if the file should not be executed, then ensure that it is not
[ 167s] marked as executable or don't install it in a path that is reserved for
[ 167s] executables.
Errors during activation of an empty database (Sorry for the picture, but cant copy the text!):
Date widgets: Dates are displayed in US-Format (MM/DD/YYYY), although the user, who runs the GH client, is set to german
Create a person and a patient, print ID card:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 73, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 44, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 122, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 176, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/report/report.py", line 182, in execute
oext, content = cls._execute(records, data, action_report)
File "/trytond/report/report.py", line 190, in _execute
return cls.convert(action, cls.render(action, report_context))
File "/trytond/report/report.py", line 318, in convert
subprocess.check_call(cmd)
File "/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['soffice', '--headless', '--nolockcheck', '--nodefault', '--norestore', '--convert-to', 'pdf', '--outdir', '/tmp/trytond_aik87q6j', '/tmp/trytond_aik87q6j/patient.card.odt']' returned non-zero exit status 77.
Fault: Command '['soffice', '--headless', '--nolockcheck', '--nodefault', '--norestore', '--convert-to', 'pdf', '--outdir', '/tmp/trytond_aik87q6j', '/tmp/trytond_aik87q6j/patient.card.odt']' returned non-zero exit status 77.
(soffice starts LibreOffice properly)
Print of medications:
Traceback (most recent call last):
File "/site-packages/genshi/template/eval.py", line 318, in lookup_attr
val = getattr(obj, key)
AttributeError: 'NoneType' object has no attribute 'rec_name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/site-packages/genshi/template/eval.py", line 324, in lookup_attr
val = obj[key]
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 73, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 44, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 122, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 176, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/report/report.py", line 182, in execute
oext, content = cls._execute(records, data, action_report)
File "/trytond/report/report.py", line 190, in _execute
return cls.convert(action, cls.render(action, report_context))
File "/trytond/report/report.py", line 290, in render
data = "">
File "/relatorio/templates/base.py", line 34, in render
return self.serializer(self.events)
File "/relatorio/templates/opendocument.py", line 1056, in __call__
for kind, data, pos in stream:
File "/site-packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/site-packages/genshi/filters/i18n.py", line 690, in __call__
for kind, data, pos in stream:
File "/site-packages/genshi/template/base.py", line 617, in _include
for event in stream:
File "/site-packages/genshi/template/markup.py", line 326, in _match
for event in stream:
File "/site-packages/genshi/template/base.py", line 577, in _flatten
result = _eval_expr(data, ctxt, vars)
File "/site-packages/genshi/template/base.py", line 289, in _eval_expr
retval = expr.evaluate(ctxt)
File "/site-packages/genshi/template/eval.py", line 178, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "<string>", line 1, in <_expression_ '__relatorio_escape_invalid_chars(user.company.rec_name)'>
File "/site-packages/genshi/template/eval.py", line 326, in lookup_attr
val = cls.undefined(key, owner=obj)
File "/site-packages/genshi/template/eval.py", line 414, in undefined
raise UndefinedError(key, owner=owner)
genshi.template.eval.UndefinedError: None has no member named "rec_name"
(patient has no medication yet, but this should not throw an exception)
Opening the frl from the 'launch action' menu:
File "/usr/lib/python3.6/site-packages/tryton/gui/window/form.py", line 698, in <lambda>
if self.screen.current_record else None),
File "/usr/lib/python3.6/site-packages/tryton/plugins/frl/__init__.py", line 325, in frl_main
frl = FederationResourceLocator()
File "/usr/lib/python3.6/site-packages/tryton/plugins/frl/__init__.py", line 242, in __init__
self.window.set_icon_from_file(icon)
Error: g-file-error-quark: Failed to open file '/home/test/gnuhealth_plugins/frl/icons/federation.svg': Datei oder Verzeichnis nicht gefunden (4)
I feel it is a bad idea to have the plugins in a directory under the local user - plugins should be looked up in the installation path, otherwise each installation of the client requires manual effort!
test@linux-bk4c:~> dir /usr/lib/python3.6/site-packages/tryton/plugins/ insgesamt 4 drwxr-xr-x 1 root root 50 24. Okt 10:34 crypto drwxr-xr-x 1 root root 60 24. Okt 10:34 frl drwxr-xr-x 1 root root 44 24. Okt 10:34 gnuhealth_camera -rw-r--r-- 1 root root 1347 4. Okt 22:37 __init__.py drwxr-xr-x 1 root root 46 24. Okt 10:34 __pycache__ drwxr-xr-x 1 root root 44 24. Okt 10:34 translation
Thanks
Axel
|