howto import define-report in account-piecharts.scm

Derek Atkins warlord@MIT.EDU
22 Sep 2002 12:37:02 -0400


What happens if you run gnucash normally?  Does it work?

Note that very little work on 1.6 is happening at this point, and the
report infrastructure is completely different in the upcoming 1.8
release..  So if you're planning to do much report-hacking, you're
probably better off moving to the CVS platform and working from there.

-derek

Larry Evans <jcampbell3@prodigy.net> writes:

> I tried to call gnucash from command line and then invoke the gnc:main
> program.
> However, I got the following error:
> <------- begin cut here -----------
> 
> gnucash: [D] "  checking for ""/home/evansl/.gnucash/date-utilities.scm"
> gnucash: [D] "  checking for ""/home/evansl/.gnucash/scm/date-utilities.scm"
> gnucash: [D] "  checking for
> ""/usr/local/share/gnucash/scm/date-utilities.scm"
> gnucash: [D] "found file ""/usr/local/share/gnucash/scm/date-utilities.scm"
> /usr/local/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:404:4:
> In expression (gnc:define-report (quote version) 1 ...):
> /usr/local/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:404:4:
> Unbound variable: gnc:define-report
> ABORT: (unbound-variable)
> 
> Type "(backtrace)" to get more information or "(debug)" to enter the
> debugger.
> guile> (debug)
> This is the Guile debugger; type "help" for help.
> There are 35 frames on the stack.
> 
> Frame 34:   (gnc:define-report (quote version) 1 (quote name) (car l)
> (quote menu-path) (if (caddr l) (list gnc:menuname-income-expense)
> (list gnc:menuname-asset-liability)) (quote menu-name) (cadddr l)
> (quote menu-tip) (car (cddddr l)) (quote options-generator) (lambda ()
> (options-generator (cadr l) (caddr l))) (quote renderer) (lambda
> (report-obj) (piechart-renderer report-obj (car l) (cadr l) (caddr
> l))))
> debug>
>  >------- end cut here -----------
> I even tried adding:
> 
> (gnc:depend  "report.scm")
> 
> with the other gnc:depend's near the top of the account-piecharts.scm;
> however, I got
> the same error.
> 
> Please, what should I do to get this to work?
> 
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel@lists.gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available