gnumed-bugs
[Top][All Lists]
Advanced

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

Re: [Gnumed-bugs] Error on attempting to invoice a bill - not a readable


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] Error on attempting to invoice a bill - not a readable file
Date: Sun, 29 Jul 2012 21:51:07 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Jul 18, 2012 at 07:37:36PM +0000, Jim Busser wrote:

> When I tried to print an invoice on a patient for whom I had designated an 
> address as "billing", GNUmed issued an alert that there was a problem to the 
> effect of
> 
>       "Consult the log for all the gory details"
> 
> and an excerpt of the log is appended.

What the log tells us is this:

2012-07-18 12:23:31  DEBUG     gm.printing 
(/Users/djb/Downloads/gnumed-client.1.2.1/Gnumed/pycommon/gmPrinting.py::_print_files_by_mac_preview()
 #105): printing with ['open', '-a Preview', 
u'/var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-k0rQsn/gm-L-Template-x2MCfW-instance.pdf']
2012-07-18 12:23:32  ERROR     gm.printing 
(/Users/djb/Downloads/gnumed-client.1.2.1/Gnumed/pycommon/gmPrinting.py::_print_files_by_mac_preview()
 #113): <open -a Preview> returned [1], failed to print

In other words, the call to "open -a Preview <filename>"
returns 1 (rather than the 0 which would typically be
expected).

Now we need to find out:

Does 1 (also) mean that "open -a Preview" works as expected ?

        -> What is the return code if you run it from the CLI ?

        -> Does the invoice open in Preview *despite* GNUmed
           thinking differently ?

If not we'll need to find out why.

> A few notes on what I here append as the excerpt:
> 
> 1) despite that the log reports in excerpt line 182
> 
>       <open -a Preview> returned [1], failed to print
> 
> the command
> 
>       open -a Preview 
> /var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-k0rQsn/gm-L-Template-x2MCfW-instance.pdf
> 
> which I issued from CLI in fact opened the document.

Can you retry that with a newly created invoice and look at
the return code thereof ?

> 2) I wonder whether a line higher up (line 163) is any
> part of the problem, perhaps misidentifying the file that is
> to be cued up for optional adding to the patient's record?
> 
>       2012-07-18 12:23:31  ERROR     gm.docs 
> (/Users/djb/Downloads/gnumed-client.1.2.1/Gnumed/business/gmDocuments.py::update_data_from_file()
>  #308): 
> [/var/folders/rR/rRhuX5jzF8WCKfgoTie3Zk+++TQ/-Tmp-/gnumed/gm-k0rQsn/gm-L-Template-x2MCfW-instance.tex]
>  is not a readable file

I'm checking.

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]