gnumed-bugs
[Top][All Lists]
Advanced

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

Re: [Gnumed-bugs] Problem in 0.9.4 printing medication list on Mac


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] Problem in 0.9.4 printing medication list on Mac
Date: Mon, 9 May 2011 09:18:01 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, May 08, 2011 at 06:02:12PM -0700, Jim Busser wrote:

> Even after I copied the newest gm-print_doc into my MacPorts
> 
>       /opt/local/bin
> 
> which is in my PATH,

To take effect it must be the gm-print_doc found *first* in
the path.

> when I tried to print medications my PDF app (Preview)
> opened but there was no PDF. I checked in the expected
> temporary directory and there can see .tex files but not any
> PDFs

That would suggest that the PDF wasn't generated.

> Also is the /opt/local/bin ignored when running from vcs?

Not if it first in the PATH.

> Does the output from the log help?

Can you find this file ?

> 2011-05-08 17:50:11  DEBUG     gm.printing 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmPrinting.py::print_file_by_shellscript()
>  #29): printing "medication_list": 
> [/var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR-instance.pdf]

...

> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<client_version>$]
> 2011-05-08 17:50:10  DEBUG     gm.cfg 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmCfg2.py::get() 
> #314): option [internal::client_version] found in source [internal]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<tex_escape::$Id: 
> GNUmed-default_medication_list_template.tex,v 1.6 2010-01-21 08:47:11 ncq Exp 
> $>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<today::%Y %B %d>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<current_provider>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<lastname>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<firstname>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<date_of_birth::%Y %B %d>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<adr_street::home>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<adr_number::home>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<adr_postcode::home>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<adr_location::home>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<current_meds_table::latex>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<current_meds_notes::latex>$]
> 2011-05-08 17:50:10  DEBUG     gm.scripting 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/wxpython/gmMacro.py::__getitem__()
>  #149): replacing [$<allergies::%(descriptor)s & %(l10n_type)s & 
> {\footnotesize %(reaction)s} \tabularnewline \hline >$]
> 2011-05-08 17:50:10  DEBUG     gm.forms 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/business/gmForms.py::generate_output()
>  #734): ignoring <format> directive [None], generating PDF
> 2011-05-08 17:50:10  DEBUG     gm.forms 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/business/gmForms.py::generate_output()
>  #738): LaTeX sandbox directory: 
> [/var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR]
> 2011-05-08 17:50:10  DEBUG     gm.forms 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/business/gmForms.py::generate_output()
>  #741): CWD: [/Users/djb/Downloads/gnumed-client.0.9.4/client]
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #99): shell command >>>pdflatex -interaction nonstopmode 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR/gm-L-Template-_KsJqR-instance.tex<<<
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #100): blocking: True
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #101): acceptable return codes: [0, 1]
> 2011-05-08 17:50:10  INFO      gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #131): running shell command >>>pdflatex -interaction nonstopmode 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR/gm-L-Template-_KsJqR-instance.tex<<<
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #134): os.system() returned: [0]
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #146): exited via exit(): True
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #148): exit code: [0]
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #150): normal exit: True
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #151): dumped core: False
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #152): stopped by signal: False
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #99): shell command >>>pdflatex -interaction nonstopmode 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR/gm-L-Template-_KsJqR-instance.tex<<<
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #100): blocking: True
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #101): acceptable return codes: [0, 1]
> 2011-05-08 17:50:10  INFO      gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #131): running shell command >>>pdflatex -interaction nonstopmode 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR/gm-L-Template-_KsJqR-instance.tex<<<
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #134): os.system() returned: [0]
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #146): exited via exit(): True
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #148): exit code: [0]
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #150): normal exit: True
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #151): dumped core: False
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #152): stopped by signal: False
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #99): shell command >>>pdflatex -interaction nonstopmode 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR/gm-L-Template-_KsJqR-instance.tex<<<
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #100): blocking: True
> 2011-05-08 17:50:10  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #101): acceptable return codes: [0, 1]
> 2011-05-08 17:50:10  INFO      gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #131): running shell command >>>pdflatex -interaction nonstopmode 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR/gm-L-Template-_KsJqR-instance.tex<<<
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #134): os.system() returned: [0]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #146): exited via exit(): True
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #148): exit code: [0]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #150): normal exit: True
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #151): dumped core: False
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #152): stopped by signal: False

LaTeX claims it generated the PDF just fine.

> 2011-05-08 17:50:11  DEBUG     gm.printing 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmPrinting.py::print_file_by_shellscript()
>  #29): printing "medication_list": 
> [/var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR-instance.pdf]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::find_first_binary()
>  #76): looking for [gm-print_doc]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
>  #18): detecting [gm-print_doc]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
>  #30): [which gm-print_doc] failed, exit code: 256
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::find_first_binary()
>  #76): looking for [gm-print_doc.bat]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
>  #18): detecting [gm-print_doc.bat]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
>  #30): [which gm-print_doc.bat] failed, exit code: 256
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::find_first_binary()
>  #76): looking for 
> [/Users/djb/Downloads/gnumed-client.0.9.4/client/../external-tools/gm-print_doc]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::detect_external_binary()
>  #18): detecting 
> [/Users/djb/Downloads/gnumed-client.0.9.4/client/../external-tools/gm-print_doc]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #99): shell command 
> >>>/Users/djb/Downloads/gnumed-client.0.9.4/client/../external-tools/gm-print_doc
>   medication_list 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR-instance.pdf<<<
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #100): blocking: True
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #101): acceptable return codes: [0]
> 2011-05-08 17:50:11  INFO      gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #131): running shell command 
> >>>/Users/djb/Downloads/gnumed-client.0.9.4/client/../external-tools/gm-print_doc
>   medication_list 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-UWd7E_/gm-L-Template-_KsJqR-instance.pdf<<<
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #134): os.system() returned: [0]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #146): exited via exit(): True
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #148): exit code: [0]
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #150): normal exit: True
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #151): dumped core: False
> 2011-05-08 17:50:11  DEBUG     gm.shell 
> (/Users/djb/Downloads/gnumed-client.0.9.4/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
>  #152): stopped by signal: False

GNUmed then claims that there's been some indication that it
printed just fine.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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