[GNC] Balsheet-eg.scm problem

Derek Atkins warlord at MIT.EDU
Thu Aug 23 09:17:34 EDT 2018


Hi,

"Stephen M. Butler" <kg7je at arrl.net> writes:

> I tripped over a few more typos that seemingly were unrelated to the
> errors produced.
>
> I can get this set of files to work usurping the balsheet-eg.scm
> report.  If I change that back to balsheet-fmtd.scm (and fix the name
> dependencies in the file), it isn't seen by GNC.
>
> Moving the files down to standard-reports throws other errors that I
> can't figure out.  So, what has to happen to get the report to load
> independent of balsheet-eg?

[snip]
>>>> 3068: 9 [try-module-autoload (gnucash report business-reports) #f]
>>>> 2404: 8 [save-module-excursion #<procedure 55a8a488cc90 at
>>>> ice-9/boot-9.scm:3069:17 ()>]
>>>> 3088: 7 [#<procedure 55a8a488cc90 at ice-9/boot-9.scm:3069:17 ()>]
>>>> In unknown file:
>>>>    ?: 6 [primitive-load-path "gnucash/report/business-reports" ...]
>>>> In business-reports.scm:
>>>>  123: 5 [#<procedure 55a8a470a7c0 ()>]
>>>> In ice-9/boot-9.scm:
>>>> 3589: 4 [process-use-modules (((gnucash report balsheet-eg)))]
>>>>  705: 3 [map #<procedure 55a8a3761d40 at ice-9/boot-9.scm:3589:25
>>>> (mif-args)> ((#))]
>>>> 3590: 2 [#<procedure 55a8a3761d40 at ice-9/boot-9.scm:3589:25
>>>> (mif-args)> (#)]
>>>> 2870: 1 [resolve-interface (gnucash report balsheet-eg) #:select ...]
>>>> In unknown file:
>>>>    ?: 0 [scm-error misc-error #f ...]
>>>>
>>>> ERROR: In procedure scm-error:
>>>> ERROR: no code for module (gnucash report balsheet-eg)

Basically, the issue being reported is that it is trying to find "gnucash
report balsheet-eg" but it can't.  WHY it thinks there is "no code for
module" is a different question.  One possibility is caching -- you
should definitely clear your guile cache.  You can also "touch" the .scm
files to make them look newer so they get recompiled.

I was under the impression that all the files in standard-reports get
auto-loaded.  So just pulling a new report in there should be
sufficient.  HOWEVER the e-guile reports MIGHT be different.

Also, ensure the file name and path matches the module name.

-derek

-- 
       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 at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list