Discussion:
[GNC] Custom report on Windows
Stephen M. Butler
2018-12-07 22:35:00 UTC
Permalink
The custom balance sheet (formatted) report that you folks helped my
configure on Linux, my wife now wants on her Windows 10 box.

From my research, it appears that both the config-user.scm file (Linux:
$HOME/.config/gnucash/) and the three report files balsheet-fmtd.scm,
balsheet-fmtd.eguile.scm, stylesheet-reports.css (Linux:
$HOME/.local/share/gnucash/) all go to %APPDATA% on Windows 10.  I
copied all four files from my Ubuntu 18.04 box to her Windows 10 box and
put them in %APPDATA% (C:\Users\Wanita\AppData\Roaming\Gnucash\) and
restarted GnuCash on her box.

The reports did not appear in the drop down menu.  Do all four files go
into the same folder on Windows?  Or did I miss-read the location for
one or the other?

I found the trace file in C:\Users\Wanita\AppData\Local\Temp and it has
these messages that seem relevent:


* 14:25:46  WARN <gnc.app-utils> In c-interface.scm:
  29: 19 [#<procedure b685438 at c-interface.scm:23:8 ()>]
In unknown file:
   ?: 18 [eval-string "(load (gnc-build-userdata-path
\"balsheet-fmtd.scm\"))\n" ...]
   ?: 17 [call-with-input-string "(load (gnc-build-userdata-path
\"balsheet-fmtd.scm\"))\n" ...]
In ice-9/boot-9.scm:
2412: 16 [save-module-excursion #<procedure b6853f0 at
ice-9/eval-string.scm:65:9 ()>]
In ice-9/eval-string.scm:
  44: 15 [read-and-eval #<input: string bbc3150> #:lang ...]
  37: 14 [lp (load (gnc-build-userdata-path "balsheet-fmtd.scm"))]
In ice-9/boot-9.scm:
2412: 13 [save-module-excursion #<procedure b103380 at
ice-9/boot-9.scm:4084:3 ()>]
4089: 12 [#<procedure b103380 at ice-9/boot-9.scm:4084:3 ()>]
1734: 11 [%start-stack load-stack ...]
1739: 10 [#<procedure b7d5948 ()>]
In unknown file:
   ?: 9 [primitive-load
"C:\\Users\\Wanita\\AppData\\Roaming\\GnuCash\\balsheet-fmtd.scm"]
In ice-9/eval.scm:
 505: 8 [#<procedure a39f000 at ice-9/eval.scm:499:4 (exp)>
(use-modules #)]
In ice-9/psyntax.scm:
1107: 7 [expand-top-sequence ((use-modules (gnucash main))) () ...]
 990: 6 [scan ((use-modules (gnucash main))) () ...]
 279: 5 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
In ice-9/boot-9.scm:
3622: 4 [process-use-modules (((gnucash main)))]
 712: 3 [map #<procedure a4fe810 at ice-9/boot-9.scm:3622:25
(mif-args)> ((#))]
3623: 2 [#<procedure a4fe810 at ice-9/boot-9.scm:3622:25 (mif-args)> (#)]
2903: 1 [resolve-interface (gnucash main) #:select ...]
In unknown file:
   ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnucash
main)) #f]

ERROR: no code for module (gnucash main)
* 14:25:49  WARN <gnc.app-utils> Could not spawn perl: Failed to execute
child process (No such file or directory)


Does this mean Perl isn't loaded on her box or is there a problem with
gnucash main?

--Steve
--
Stephen M Butler, PMP, PSM
***@gmail.com
***@arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint: 8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by
Geert Janssens
2018-12-08 09:30:33 UTC
Permalink
Post by Stephen M. Butler
The custom balance sheet (formatted) report that you folks helped my
configure on Linux, my wife now wants on her Windows 10 box.
$HOME/.config/gnucash/) and the three report files balsheet-fmtd.scm,
$HOME/.local/share/gnucash/) all go to %APPDATA% on Windows 10. I
copied all four files from my Ubuntu 18.04 box to her Windows 10 box and
put them in %APPDATA% (C:\Users\Wanita\AppData\Roaming\Gnucash\) and
restarted GnuCash on her box.
The reports did not appear in the drop down menu. Do all four files go
into the same folder on Windows? Or did I miss-read the location for
one or the other?
I found the trace file in C:\Users\Wanita\AppData\Local\Temp and it has
29: 19 [#<procedure b685438 at c-interface.scm:23:8 ()>]
?: 18 [eval-string "(load (gnc-build-userdata-path
\"balsheet-fmtd.scm\"))\n" ...]
?: 17 [call-with-input-string "(load (gnc-build-userdata-path
\"balsheet-fmtd.scm\"))\n" ...]
2412: 16 [save-module-excursion #<procedure b6853f0 at
ice-9/eval-string.scm:65:9 ()>]
44: 15 [read-and-eval #<input: string bbc3150> #:lang ...]
37: 14 [lp (load (gnc-build-userdata-path "balsheet-fmtd.scm"))]
2412: 13 [save-module-excursion #<procedure b103380 at
ice-9/boot-9.scm:4084:3 ()>]
4089: 12 [#<procedure b103380 at ice-9/boot-9.scm:4084:3 ()>]
1734: 11 [%start-stack load-stack ...]
1739: 10 [#<procedure b7d5948 ()>]
?: 9 [primitive-load
"C:\\Users\\Wanita\\AppData\\Roaming\\GnuCash\\balsheet-fmtd.scm"]
505: 8 [#<procedure a39f000 at ice-9/eval.scm:499:4 (exp)>
(use-modules #)]
1107: 7 [expand-top-sequence ((use-modules (gnucash main))) () ...]
990: 6 [scan ((use-modules (gnucash main))) () ...]
279: 5 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
3622: 4 [process-use-modules (((gnucash main)))]
712: 3 [map #<procedure a4fe810 at ice-9/boot-9.scm:3622:25
(mif-args)> ((#))]
3623: 2 [#<procedure a4fe810 at ice-9/boot-9.scm:3622:25 (mif-args)> (#)]
2903: 1 [resolve-interface (gnucash main) #:select ...]
?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnucash
main)) #f]
ERROR: no code for module (gnucash main)
* 14:25:49 WARN <gnc.app-utils> Could not spawn perl: Failed to execute
child process (No such file or directory)
Does this mean Perl isn't loaded on her box or is there a problem with
gnucash main?
--Steve
Hi Steve,

Perl is not relevant in this context. The error is from the guile code in
gnucash.

The (gnucash main) module no longer exists in gnucash 3.x. All relevant
functionality has been moved elsewhere. So I wonder where the request comes
from to load this module. Is there something like that in the custom report
you are trying to load ?

Regards,

Geert


_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Loading...