<gour>i'm trying to make some custom gnucash reports working in 3.0. i've been able to adjust my config-user.scm by using add-to-load-path and now i'm not getting " ERROR: no code for module (gnucash gnctimeperiod-utilities)" error in console any longer, but now the problem is that "gnucash --debug --log gnc.scm=debug" does not produce any error, while report is still not available, so wonder how to troubleshoot it further? ***Raimondii is now known as Raimondi
<gour>str1ngs: nope. i was even considering to downgrade to 2.6.x, but it's time consuming since fc28 does provide only 3.0 atm, so i'm forced to fix reports <str1ngs>normally I fun fedora but I switched to unbuntu for some work related stuff. <gour>fedora is, for me, the best distro i've ever encountered and i'm on linux since '99 <gour>yes, those reports do work with 2.6 <str1ngs>run guile then do (use-modules (gnucash gnctimeperiod-utilities)) <gour>but, gnucash does change things a bit... <gour>ERROR: no code for module (gnucash gnctimeperiod-utilities) <str1ngs>I started with linux around redhat colgate <gour>same. othwerwise, my report is current-vs-average and requires gnctimeperiod-utilities <gour>ERROR: no code for module (gnucash) <str1ngs>%load-path has the modules for gnucash? <gour>i put: (add-to-load-path "~/.local/share/gnucash/gnctimeperiod-utilities.scm") in my ~/.config/gnucash/config-user.scm <gour>so, gnucash does load the report, but does not install and it and debug does not produce any error now <str1ngs>should be (add-to-load-path "/full/home/path/.local/share") <str1ngs>or (add-to-load-path (string-append (getenv "HOME") "/.local/share")) <str1ngs>and your adding the file path no the directory path <gour>i changed into 1st option: (add-to-load-path "/home/gour/.local/share") <gour>but still don't get anything from gnucash debug's output, shall i try again by invoking guile? <str1ngs>and (use-modules (gnucash gnctimeperiod-utilities) in guile <gour>ERROR: no code for module (gnucash gnctimeperiod-utilities) <str1ngs>how many files are they just the one? <gour>no, many files, few folders <str1ngs>k one sec let me build gnucash 3.0 right? <gour>ACTION would like to learn some scheme/guile in order to be able to customize gC reports <str1ngs>what pkg-config is missing with this error CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message): <str1ngs>wow I just get libdb-sqlite3 provided a libdi backend haha <str1ngs>this is using cmake for some reason. which I though was odd <str1ngs>err 2.2.3 . what does 28 ship with ? <str1ngs>guile 2.0.14 is just there in /bin for some shebangs <gour>it has 2.2, but deps for gnucash is 2.0...let me check the exact version <gour>ok, otherwise there is 2.2.2 <str1ngs>gour: I dont have gnctimeperiod-utilitie <gour>str1ngs: that's part of custom report...let me paste it <str1ngs>also is .gcm intentional or is that guile 2.0 related <gour>libs are under /usr/lib64/gnucash <str1ngs>I'm trying to understand this paste that has .gcm exntention is that byte compiled? <gour>ahhm those are ust book-related settings, you can ignore them related to report <str1ngs>ahh this makes more sense now.. one sec <gour>will have to go to lunch soon, but bbs <str1ngs>in guile (load "/home/gour/.local/share/gnucash/gnctimeperiod-utilities.scm") <str1ngs>it might complain no code gnucash gettext <str1ngs>this just looks like an module path issue so far <str1ngs>gour: add $PREFIX/share/gnucash/scm to %load-path move gnctimeperiod-utilities.scm to $PREFIX/share/gnucash/scm/gnucash <str1ngs>then (use-modules (gnucash gnctimeperiod-utilities)) should work <str1ngs>gour: you don't have to move gnctimeperiod-utilities.scm but it makes trouble shooting easier. alternatively you need to add gnctimeperiod-utilities.scm parent directory to %load-path as well <gour>str1ngs: i've added: (add-to-load-path "/usr/share/gnucash/scm") and put scm file into: /usr/share/gnucash/scm/gnucash, but still get the same error <str1ngs>is gnucash installed into $HOME/local ? <str1ngs>ironically I use $HOME/local not .local <gour>no gnucacsh is installed under /usr <str1ngs>if it exists and is populated. add that to %load-path <gour>i mean, that's the folder i've added to the load-path <str1ngs>oh wait I read that wrong. that looks good <str1ngs>(use-modules (gnucash gnctimeperiod-utilities)) gives no code? <gour>no, it gives: ERROR: no code for module (gnucash gnctimeperiod-utilities) <gour>$1 = ("/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile") <gour>ahh, i was adding to load-path within gnucash and not guile itself :-( <str1ngs>yes. alternatively you can add it in ~/.guile IIRC <gour>now i put it into ~/.guile to make it more convenient <str1ngs>seems the module paths are right now <str1ngs>so that a dynamic linker thing. it might have trouble find so files <gour>str1ngs: btw, i watched some video where wingo mentioned that 3.0 is supposed to have native code-generation. is there any rough estimate when it might happen? <str1ngs>ah I think you mean compiling scm to elf instead of bytcode? <str1ngs>I think that what we are talking about compiling to elf ? <gour>i was considering to fiddle with the racket, but probably due to lack of time will focus just on guile since i have real need for it for gnucash... <str1ngs>and then I get confused when I need to use elisp again haha <str1ngs>gour: I'm stilling checking why dynamic-link can not find so files <gour>str1ngs: i'm told by some gnucash hacker that: " well you are trying to load gncitmeperiod-utilities into a blank guile environment. this module relies on a lot of gnucash modules which rely on C and SWIG and etc. ergo you will never be able to load a gnucash guile module directly into guile." <str1ngs>I don't think that's how repl works :P <str1ngs>gour: can you make sure gnucash has the right %load-path and try then <str1ngs>either way this problem is dynamic-link which is run time loading so not related to gnucash C bit <str1ngs>gour: either way I think it's resolved once you get gnucash's %load-path fix. atleast this issue <gour>str1ngs: btw, is it possible to hack guile using vim? <str1ngs>emacs with evil and geiser is a good setup <chrislck>can anyone with guile-2.2 help me - is the /usr/bin/guild script still (c) 2014 or is there a newer one? <str1ngs>gour: how do I use timeperiod module from gnucash <gour>thanks...now have to do something else, will resume later <str1ngs>gour: ya I think we are past your orginal issue now <str1ngs>gour: I'm currently hacking a web browser in scheme and C <gour>it sounds similar to monad :D <chrislck>thank you gour for putting my pull request - it incorporates an update onto daily-reports.scm which was created be the one and only wingo :) <wingo>hah! that was the first scheme i ever wrote :) <gour>chrislck: what about your fix for ytd-budget reports? is it going to be applied? <gour>chrislck: ok, i do mind as long as it does its job...but in order to prepare budget, i need current-vs-average as well <chrislck>wingo not sure if you were involved at the same time as rgmerk but I met him in Melbourne in January :-P <str1ngs>gour: actually there is not relation with monad <str1ngs>gour: I wanted something that explored on safari and killed foxs. I came up with a nomad haha <mwette>Any of you use git on git.sv.gnu.org? I'm having problems connecting today. <mwette>this: `ssh: connect to host git.gv.gnu.org port 22: Connection timed out' <janneke>mwette: just a silly question: what do the `d' and `i' stand for in i-sel, d-sel? <janneke>after many months of working on Mes' scheme implementation, i'm again working on the MesCC C compiler <mwette>IIRC i-sel is indirect selection "a->b"; and d-del is direct selection "a.b" <mwette>git on git.sv.gnu.org is working now; it was overloaded this morning ***gour_ is now known as gour