[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Re: <bug>: Unsure if the -bugs list is down. This is u
From: |
Karsten Hilbert |
Subject: |
[Gnumed-devel] Re: <bug>: Unsure if the -bugs list is down. This is u |
Date: |
Tue, 5 Jan 2010 17:35:02 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Jan 04, 2010 at 08:58:56PM +0100, Dr.Leonard Horatio McCoy wrote:
> user comment : Unsure if the -bugs list is down. This is
> using Ubuntu 9.1.0 karmic with 0.6rc3 against Salaam v12 but
> if this is the old problem, is not not fixed as a result of
> a Salaam db update or does avoiding this problem also depend
> on client >rc3?
It shouldn't, no. Only the improved detection of failure.
It is exporting the template:
> 2010-01-04 11:56:32 DEBUG gm.db
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmPG2.py::get_raw_connection()
> #1196): new database connection, backend PID: 30565, readonly: True
> 2010-01-04 11:56:32 DEBUG gm.db
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmPG2.py::get_raw_connection()
> #1222): access mode [READ ONLY]
> 2010-01-04 11:56:33 DEBUG gm.db
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object() #840):
> expecting bytea data of size: [2761] bytes
> 2010-01-04 11:56:33 DEBUG gm.db
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object() #841):
> using chunk size of: [0] bytes
> 2010-01-04 11:56:33 DEBUG gm.db
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object() #846):
> chunk size [0] bytes: retrieving all data at once
> 2010-01-04 11:56:33 DEBUG gm.db
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object() #852):
> chunks to retrieve: [1]
> 2010-01-04 11:56:33 DEBUG gm.db
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmPG2.py::bytea2file_object() #853):
> remainder to retrieve: [0] bytes
Then substituting placeholders:
> 2010-01-04 11:56:34 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<client_version>$]
> 2010-01-04 11:56:34 DEBUG gm.cfg
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmCfg2.py::get() #314): option
> [internal::client_version] found in source [internal]
> 2010-01-04 11:56:34 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<today::%Y %B %d>$]
> 2010-01-04 11:56:34 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<current_provider>$]
> 2010-01-04 11:56:34 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<lastname>$]
> 2010-01-04 11:56:35 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<firstname>$]
> 2010-01-04 11:56:36 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<date_of_birth::%Y %B %d>$]
> 2010-01-04 11:56:36 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_street::home>$]
> 2010-01-04 11:56:37 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_number::home>$]
> 2010-01-04 11:56:39 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_postcode::home>$]
> 2010-01-04 11:56:40 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<adr_location::home>$]
> 2010-01-04 11:56:42 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/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 >$]
> 2010-01-04 11:56:42 DEBUG gm.scripting
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMacro.py::__getitem__() #105):
> replacing [$<allergies::%(descriptor)s & %(l10n_type)s & {\footnotesize
> %(reaction)s} \tabularnewline \hline >$]
Generating PDF:
> 2010-01-04 11:56:43 DEBUG gm.forms
> (/home/jbusser/gm/06rc3/Gnumed/business/gmForms.py::generate_output() #606):
> ignoring <format> directive [None], generating PDF
> 2010-01-04 11:56:43 DEBUG gm.forms
> (/home/jbusser/gm/06rc3/Gnumed/business/gmForms.py::generate_output() #610):
> LaTeX sandbox directory: [/home/jbusser/.gnumed/tmp/gm-L-Template-9eroup]
> 2010-01-04 11:56:43 DEBUG gm.forms
> (/home/jbusser/gm/06rc3/Gnumed/business/gmForms.py::generate_output() #613):
> CWD: [/home/jbusser/gm/06rc3/client]
With the help of pdflatex:
> 2010-01-04 11:56:43 DEBUG gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #79): shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-9eroup/gm-L-Template-9eroup-instance.tex<<<
> 2010-01-04 11:56:43 DEBUG gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #80): blocking: True
> 2010-01-04 11:56:43 INFO gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #111): running shell command >>>pdflatex -interaction nonstopmode
> /home/jbusser/.gnumed/tmp/gm-L-Template-9eroup/gm-L-Template-9eroup-instance.tex<<<
> 2010-01-04 11:56:43 DEBUG gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #113): os.system() returned: [32512]
> 2010-01-04 11:56:43 DEBUG gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #116): exited via exit(): True
Which, however, fails:
> 2010-01-04 11:56:43 DEBUG gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #118): exit code: [127]
> 2010-01-04 11:56:43 DEBUG gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #120): dumped core: False
> 2010-01-04 11:56:43 DEBUG gm.shell
> (/home/jbusser/gm/06rc3/Gnumed/pycommon/gmShellAPI.py::run_command_in_shell()
> #121): stopped by signal: False
Thereby failing to produce (and thus find) a PDF:
> 2010-01-04 11:56:43 DEBUG gm.gui
> (/home/jbusser/gm/06rc3/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
> #49): unhandled exception caught:
> Traceback (most recent call last):
> File "/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMedicationWidgets.py", line
> 1282, in _on_print_button_pressed
> self._grid_substances.print_medication_list()
> File "/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMedicationWidgets.py", line
> 1056, in print_medication_list
> print_medication_list(parent = self)
> File "/home/jbusser/gm/06rc3/Gnumed/wxpython/gmMedicationWidgets.py", line
> 752, in print_medication_list
> pdf_name = meds_list.generate_output(cleanup = True)
> File "/home/jbusser/gm/06rc3/Gnumed/business/gmForms.py", line 628, in
> generate_output
> shutil.move(pdf_name, os.path.split(self.instance_filename)[0])
> File "/usr/lib/python2.6/shutil.py", line 264, in move
> copy2(src, real_dst)
> File "/usr/lib/python2.6/shutil.py", line 99, in copy2
> copyfile(src, dst)
> File "/usr/lib/python2.6/shutil.py", line 52, in copyfile
> fsrc = open(src, 'rb')
> IOError: [Errno 2] No such file or directory:
> u'/home/jbusser/.gnumed/tmp/gm-L-Template-9eroup/gm-L-Template-9eroup-instance.pdf'
We need to find out why generating the PDF fails for you.
What is the LaTeX console output during PDF generation ?
Can you email me the template you use ?
The code in CVS will leave behind the sandbox directory if
an error occurs during pdflatex.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnumed-devel] Re: <bug>: Unsure if the -bugs list is down. This is u,
Karsten Hilbert <=