question about warning on stderr

Geert Janssens janssens-geert at telenet.be
Sat May 10 05:54:25 EDT 2014


On Friday 09 May 2014 18:11:44 incoming-gnucash at sabot.com wrote:
> I've been running gnucash on my Xubuntu precise machine for a few
> weeks now, and have (I think) successfully switched myself over from
> Quicken.  I've accumulated a few questions along the way that I can't
> answer for myself, but I think it is best to trickle them in one at a
> time, so I'll start with this:
> 
> I'm running what I think is the current version, installed from the
> getdeb repo into my Xubuntu precise system:
> 
>    $ gnucash --version
>    GnuCash 2.6.3
>    This copy was built from rev 4e4a032+ on 2014-04-08.
> 
> I have been invoking it at the shell, and while the program always
> behaves fine, there are always warnings being printed out the shell.
> I'm wondering if these warnings indicate a problem I need to fix in my
> installation, or if instead they are pretty normal, and I should
> probably just invoking gnucash by picking it from the application
> menu or setting up a desktop icon so that this output automatically
> goes to /dev/nul instead.
> 
> For example, every time I run gnucash I see this emitted
> around startup time:
> 
>    Traceback (most recent call last):
>      File "/usr/share/gnucash/python/init.py", line 3, in <module>
>        from gnucash import *
>    ImportError: No module named gnucash
>    Found Finance::Quote version 1.17
> 
This one is harmless if you don't intend to use the python bindings. I 
suspect This happens because gnucash' python modules are not not found 
by python. If these modules are not installed in python's default 
$PYTHONPATH, the path to them should be added instead. This suggests a 
configuration error in the xubuntu gnucash packages or you may need to 
install an additional package like gnucash-python or so. I don't know 
how the Xubuntu packagers decided to set this up exactly.

> Usually that is all, but on occasion (I think when I do something
> interesting with reports or qif importing) there are others, such as
> 
>    ;;; WARNING (gnc:make-report-anchor:
> faf410e8f8da481fbc09e4763da40bcc  No such option:  Display Use
> Stacked Lines)
> 
This is harmless as well, but shouldn't happen.

> or
> 
>    Backtrace:
>    In ice-9/boot-9.scm:
>     149: 4 [catch #t #<catch-closure 145f940> ...]
>     157: 3 [#<procedure 14cc0f0 ()>]
>    In unknown file:
>       ?: 2 [catch-closure]
>    In qif-import/qif-file.scm:
>     557: 1 [qif-file:check-from-acct #f]
>    In ice-9/boot-9.scm:
>    1091: 0 [#<procedure 1626b40 at ice-9/boot-9.scm:1090:4 (obj)> #f]
> 
>    ice-9/boot-9.scm:1091:15: In procedure #<procedure 1626b40 at
> ice-9/boot-9.scm:1090:4 (obj)>: ice-9/boot-9.scm:1091:15: In
> procedure struct_vtable: Wrong type argument in position 1 (expecting
> struct): #f
> 
Something goes wrong here while importing a qif file. This is a part of 
GnuCash I never use so I can't help you here. Does the import fail when 
you get this error ?

> 
> or the longer one below:
> 
>    In unknown file:
>       ?: 19 [catch-closure]
>       ?: 18 [call-with-input-string "(gnc:report-run 2)" ...]
>    In ice-9/boot-9.scm:
>    2111: 17 [save-module-excursion #<procedure 42adae0 at
> ice-9/eval-string.scm:65:9 ()>] In ice-9/eval-string.scm:
>      44: 16 [read-and-eval #<input: string 19711a0> #:lang ...]
>      37: 15 [lp (gnc:report-run 2)]
>    In report.scm:
>     771: 14 [gnc:report-run 2]
>    In ice-9/boot-9.scm:
>     149: 13 [catch ignore #<procedure 42ad8d0 at
> gnucash/main.scm:112:4 ()> ...] 157: 12 [#<procedure 42875a0 ()>]
>    In unknown file:
>       ?: 11 [lazy-catch #t #<procedure 42ad870 at
> gnucash/main.scm:114:18 ()> ...] In ice-9/boot-9.scm:
>     171: 10 [with-throw-handler #t #<catch-closure 42aa020>
> #<catch-closure 42aa000>] In unknown file:
>       ?: 9 [catch-closure]
>    In report.scm:
>     775: 8 [#<procedure 42ad900 at report.scm:772:5 ()>]
>     746: 7 [gnc:report-render-html # #t]
>    In gnucash/report/standard-reports/transaction.scm:
>    1480: 6 [trep-renderer #]
>    1223: 5 [make-split-table (# # # ...) #<procedure dispatch (key)>
> ...] 161: 4 [render-account-subheading # # 8 ...]
>    In html-utilities.scm:
>      35: 3 [gnc:register-guid "acct-guid=" #f]
>    In unknown file:
>       ?: 2 [string-append "acct-guid=" #f]
>    In ice-9/boot-9.scm:
>     102: 1 [#<procedure 42a9b80 at ice-9/boot-9.scm:97:6 (thrown-k .
> args)> wrong-type-arg ...] In unknown file:
>       ?: 0 [catch-closure wrong-type-arg "string-append" ...]
>    ERROR: In procedure catch-closure:
>    ERROR: In procedure string-append: Wrong type (expecting string):
> #f
> 
This one is odd also. Can you provide some steps to reproduce this ?

Geert


More information about the gnucash-user mailing list