[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-bugs] <bug>: 0.6.rc3 trying to print meds from VM, this
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-bugs] <bug>: 0.6.rc3 trying to print meds from VM, this |
Date: |
Fri, 1 Jan 2010 16:02:59 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Wed, Dec 30, 2009 at 08:26:50PM -0800, Jim Busser wrote:
> Now, after re-upgrading, I get
>
> No medication template configured
Hm, actually, the log says something else. It clearly loads
a template from the backend:
> 2009-12-30 19:51:42 DEBUG gm.db
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object()
> #840): expecting bytea data of size: [2894] bytes
> 2009-12-30 19:51:42 DEBUG gm.db
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object()
> #841): using chunk size of: [0] bytes
> 2009-12-30 19:51:42 DEBUG gm.db
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object()
> #846): chunk size [0] bytes: retrieving all data at once
> 2009-12-30 19:51:42 DEBUG gm.db
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object()
> #852): chunks to retrieve: [1]
> 2009-12-30 19:51:42 DEBUG gm.db
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object()
> #853): remainder to retrieve: [0] bytes
And goes on replacing placeholders:
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<client_version>$]
> 2009-12-30 19:51:42 DEBUG gm.cfg
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmCfg2.py::get() #314): option
> [internal::client_version] found in source [internal]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<today::%Y %B %d>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<current_provider>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<lastname>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<firstname>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<date_of_birth::%Y %B %d>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_street::home>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_number::home>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_postcode::home>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_location::home>$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<current_meds::%(brand)s %(preparation)s & %(strength)s &
> %(schedule)s & {\footnotesize %(aim)s} \tabularnewline {\footnotesize
> (%(substance)s)} & \multicolumn{3}{l}{{\footnotesize %(notes)s}} \hfill
> \vline \tabularnewline \hline >$]
> 2009-12-30 19:51:42 DEBUG gm.scripting
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<allergies::%(descriptor)s & %(l10n_type)s & {\footnotesize
> %(reaction)s} \tabularnewline \hline >$]
It then generates PDF:
> 2009-12-30 19:51:42 DEBUG gm.forms
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/business/gmForms.py::generate_output()
> #606): ignoring <format> directive [None], generating PDF
> 2009-12-30 19:51:42 DEBUG gm.forms
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/business/gmForms.py::generate_output()
> #610): LaTeX sandbox directory:
> [/home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3]
> 2009-12-30 19:51:42 DEBUG gm.forms
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/business/gmForms.py::generate_output()
> #613): CWD: [/home/jbusser/gmrc/c0.6.rc3/client]
> 2009-12-30 19:51:42 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #79): shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3/gm-L-Template-XY0lQ3-instance.tex<<<
> 2009-12-30 19:51:42 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #80): blocking: True
> 2009-12-30 19:51:42 INFO gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #111): running shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3/gm-L-Template-XY0lQ3-instance.tex<<<
> 2009-12-30 19:51:49 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #113): os.system() returned: [256]
> 2009-12-30 19:51:49 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #116): exited via exit(): True
> 2009-12-30 19:51:49 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #118): exit code: [1]
> 2009-12-30 19:51:49 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #120): dumped core: False
> 2009-12-30 19:51:49 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #121): stopped by signal: False
> 2009-12-30 19:51:49 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #79): shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3/gm-L-Template-XY0lQ3-instance.tex<<<
> 2009-12-30 19:51:49 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #80): blocking: True
> 2009-12-30 19:51:49 INFO gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #111): running shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3/gm-L-Template-XY0lQ3-instance.tex<<<
> 2009-12-30 19:51:54 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #113): os.system() returned: [256]
> 2009-12-30 19:51:54 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #116): exited via exit(): True
> 2009-12-30 19:51:54 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #118): exit code: [1]
> 2009-12-30 19:51:54 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #120): dumped core: False
> 2009-12-30 19:51:54 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #121): stopped by signal: False
> 2009-12-30 19:51:54 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #79): shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3/gm-L-Template-XY0lQ3-instance.tex<<<
> 2009-12-30 19:51:54 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #80): blocking: True
> 2009-12-30 19:51:54 INFO gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #111): running shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3/gm-L-Template-XY0lQ3-instance.tex<<<
> 2009-12-30 19:51:58 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #113): os.system() returned: [256]
> 2009-12-30 19:51:58 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #116): exited via exit(): True
> 2009-12-30 19:51:58 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #118): exit code: [1]
> 2009-12-30 19:51:58 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #120): dumped core: False
> 2009-12-30 19:51:58 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #121): stopped by signal: False
And then attempts to print it:
> 2009-12-30 19:51:58 DEBUG gm.printing
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmPrinting.py::print_file_by_shellscript()
> #29): printing "medication_list":
> [/home/jbusser/.gnumed/tmp/gm-L-Template-XY0lQ3-instance.pdf]
> 2009-12-30 19:51:58 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
> #20): detecting [gm-print_doc]
> 2009-12-30 19:51:59 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
> #32): [which gm-print_doc] failed, exit code: 256
> 2009-12-30 19:51:59 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
> #20): detecting [gm-print_doc.bat]
> 2009-12-30 19:51:59 DEBUG gm.shell
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
> #32): [which gm-print_doc.bat] failed, exit code: 256
But it cannot find gm-print_doc in the PATH and thus cannot
execute it:
> 2009-12-30 19:51:59 ERROR gm.printing
> (/home/jbusser/gmrc/c0.6.rc3/Gnumed/pycommon/gmPrinting.py::print_file_by_shellscript()
> #36): neither of gm-print_doc or gm-print_doc.bat found
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
- Re: [Gnumed-bugs] <bug>: 0.6.rc3 trying to print meds from VM, this,
Karsten Hilbert <=