2012-08-23 GnuCash IRC logs
01:14:23 *** ErKa has quit IRC
02:05:14 *** timfrost has joined #gnucash
02:11:12 *** fell has joined #gnucash
02:11:12 *** gncbot sets mode: +o fell
02:36:18 *** xnox_ has quit IRC
03:04:10 *** timfrost has quit IRC
03:17:52 *** Krzysiek_K has joined #gnucash
03:23:18 *** gour has joined #gnucash
03:28:19 <gour> morning
03:29:33 <gour> have problem with python bindings - when i enable them in ./configure, the system picks python3 which is default on my distro and i do not see how to pass some option to select which python to use?t
03:34:10 <fell> Morning, gour!
03:34:26 <fell> Which pythons do you have?
03:35:46 <gour> 3.2.3 & 2.7.3, py3k is default
03:36:24 *** Krzysiek_K has quit IRC
03:36:51 <gour> i'll soon move to py2 distro, but not yet
03:37:31 <fell> I believe it depends on the search path. The first in the path will usually be picked.
03:38:39 <gour> yeah, there is no something like: --with-python= option
03:39:41 <fell> as GC option: no. also not in .configure
03:39:51 <gour> it seems we have to deploy some sed tweaking
03:40:27 <gour> i'm building GC with python bindings on my netbook which uses python-2.7.x as default
03:45:59 <fell> If your python program depends on a specific version, it should first do some version-check like "if version<=x.y then echo "version x.y required. Adjust the path!" exit 1
03:47:20 <gour> well, with the present setup, building GC with python bindings does not work since: import gnucash would fail
03:48:44 <gour> i want GC with python in order to use https://github.com/n1ywb/jeffs-gnucash-utils where it might be easier to tweak invoice template than by using scheme :-)
03:51:14 *** fell_ has joined #gnucash
03:51:15 *** gncbot sets mode: +o fell_
03:56:04 <fell_> in Gnucashs trunk we check in configure PKG_CHECK_MODULES(PYTHON, python >= 2.4
03:56:37 <fell_> And what does Jeff require?
03:57:43 <gour> well, today it's not uncommon that users have python-2 & python-3 installed...nothing special, just GC with python bindings, but GC is getting built with default python3 and jeff's utils does not work with it
03:59:39 *** fell has quit IRC
03:59:45 *** fell_ is now known as fell
04:03:45 <fell> GnuCash requires only Python 2.4, but I don't know, what happens, if on the build host 3.x is the first in the path.
04:05:52 <gour> simple...extension is built on top of python3 :-)
04:06:25 <gour> iow, no errors in build, only at runtime
04:08:48 <fell> And what happens, if you adjust the search path, to have python2 only or as the first?
04:09:12 <fell> before running
04:10:29 <fell> On long term you could help Jeff making his version Python3 compatible. :-)
04:21:07 *** Fabzgy has joined #gnucash
04:23:55 <gour> sure, if jeff's utils are good-enough, we'll be more than happy to help...it's better than keeping another web-based php app to do quoting/invoicing :-)
04:24:48 * gour considers that python-based reporting is definitely easier than scheme one
04:32:03 <gour> problem is that python3 is required for package manager...it means i'd have to build/install GC from the tarball
04:35:29 <gour> and on the netbook, G build fails due to some strange goffice versioning problem
04:37:34 <fell> No, first test the ready GC with a shell script doing: 1. adjust PATH, 2. run Gnucash
04:37:56 <fell> resp. your py prog.
04:45:01 <gour> script does not help 'cause python-bindings are built on py3
04:45:45 <gour> i've tried with 2to3 on jeff's utils, but there is some other problem with the bindings - ImportError: No module named gnucash_core
04:45:48 <fell> Did you test it or do you believe it?
04:46:27 <gour> tested it
04:47:04 <gour> running: import gnucash in python2 gives: ImportError: No module named gnucash
04:47:20 <gour> since there is not gnucash module built based on python2
04:48:50 <gour> let me rebuild GC with python bindings again and take a close look at the build log
04:52:37 <fell> k
04:53:58 *** Fabzgy has quit IRC
04:56:32 <gour> well, bindings are, it seems not python3-ready
04:57:28 <gour> http://pastebin.com/i498ZTrp
05:01:24 *** Fabzgy has joined #gnucash
05:05:01 <fell> As I never worked with the python bindings, you should better use the gnucash-devel mailing list.
05:05:45 <gour> ok
05:15:13 * gour sent post to devel list
05:16:16 *** donfede1 has joined #gnucash
05:19:10 *** fell_ has joined #gnucash
05:19:11 *** gncbot sets mode: +o fell_
05:21:35 *** donfede has quit IRC
05:24:21 *** fell has quit IRC
05:34:23 *** fell_ is now known as fell
05:37:49 <fell> gour: If your target is html/css, did you test eguile?
05:38:19 <fell> There is an example report (invoice?) in gnucash.
05:42:06 <gour> i was/am considering it, but probably it still requires some scheme...otoh, python is easier to me to grok
05:42:39 <gour> finally, i need pdf output for my quotes/invoices to be mailed to the customer
05:53:15 <warlord> gour: gnucash has a print-to-pdf option
05:53:34 <warlord> And take a look at eguile -- it's more HTML/CSS than scheme.
05:55:31 <gour> warlord: well, i use print-to-pdf in my cups driver...a far as eguile, it seems it's not further developed and jeff's utility is just python + mako template
05:56:42 <warlord> Define "further developed"? It's kept in line in the gnucash app.
05:57:07 <gour> as far as my question on the devel, it seems i can just pass PYTHON="path" and that's it, but i passed it in the wrong script's function :-(
05:57:12 <warlord> Someone else just made some custom invoice templates using eguile just the other day
05:57:23 <gour> warlord: more reports converted to it?
05:57:34 <gour> published somewhere?
05:57:41 <warlord> You could email him and ask
05:58:03 <gour> is it in the archive?
05:58:07 <warlord> (at least I think it was on the ML -- it could've been here. My child is eating my brain)
05:58:29 * gour has small daughter here as well :-)
05:58:33 <warlord> And no, more reports have not been converted.. But that's irrelevant.
05:58:42 <warlord> Mine is 1 month old today
05:59:05 <gour> mine is something more than 4 months
05:59:53 <warlord> ... this is why I'm up at 5:30am
05:59:59 <warlord> (well, now it's 5:59)
06:00:39 <gour> :-()
06:00:42 <gour> :-)
06:01:09 <gour> i built GC's python bindings against 2.7, but there is still import error - http://pastebin.com/5G7m8UQX although different one
06:02:34 <warlord> Most likely the problem is that you only have the py3 headers
06:03:23 <warlord> We probably need to change the configure script to check >= 2.4 and < 3
06:03:29 * gour nods
06:03:31 *** aqua_ has quit IRC
06:03:58 <gour> no, py2.7 is complete, but i bet some other envvar is required to be passed besides PYTHON...let me check it
06:04:52 <gour> PYTHON_SITE_PKG, at least
06:08:26 <gour> nope, all envvars are OK :-/
06:10:21 <warlord> check your -I line in the compile of the bindings to see if it's building against 2 or 3
06:14:01 <gour> Makefile says PYTHON_LDFLAGS = -L/usr/lib -lpython2.7 & PYTHON_CPPFLAGS = -I/usr/include/python2.7
06:16:36 <warlord> Hm, okay. Then I have no idea what's wrong.
06:18:06 <warlord> oh, did you do a make clean between builds?
06:18:56 <warlord> Also, are you sure you're getting *your* python bindings build and not the system's?
06:19:20 * warlord is going back to bed in a minute. baby has been fed.
06:22:46 <warlord> back in a few hours
06:26:11 *** fell has quit IRC
06:33:07 <gour> what do you mean 'my bindings' ? there are not system's python bindings for GC
06:49:41 *** Jimraehl has left #gnucash
06:58:19 *** Fabzgy has quit IRC
07:02:51 *** gour1 has joined #gnucash
07:08:02 *** gour has quit IRC
07:15:20 *** Jimraehl has joined #gnucash
07:54:16 *** xnox has joined #gnucash
08:05:11 <warlord> gour1: I mean the ones you built vs. ones provided by an rpm
08:12:09 <gour1> warlord: the official package (pacman) does not build python bindings...now i was able to build them, but, somehow, got libsqlite.so.0: cannot open shared object file: No such file or directory although there is usr/lib/dbd/libdbdsqlite.so
08:12:52 <warlord> note: libsqlite.so.0 vs. libdbdsqlite.so
08:13:06 <warlord> Do you have libsqlite.so.0 installed?
08:14:13 <gour1> there is libdbdsqlite.so only
08:15:04 <gour1> and /usr/lib/libsqlite3.so.0
08:15:29 <gour1> does it want sqlite2 version?
08:17:08 <warlord> No, but it looks like libdbdsqlite.so might be miscompiled. Run: ldd /usr/lib/dbd/libdbdsqlite.so
08:20:00 <gour1> right
08:20:52 <warlord> So what did that ldd command give you?
08:23:18 <gour1> libsqlite.so.0 => not found
08:23:35 <gour1> the package is broken
08:25:27 <warlord> There ya go.
08:25:46 <warlord> you might be able to fix it with a symlink from libsqlite3.so.0 -> libsqlite.so.0
08:25:52 <gour1> libsqlite.so.0 => /lib/libsqlite.so.0 (0x00007f0db55fa000) - but i 'solved' it by installing sqlite2 which is strange
08:25:56 <warlord> Er, other way aroun
08:26:04 <warlord> Hmm....
08:26:15 <warlord> Maybe it was built against sqlite2. Weird.
08:28:25 <gour1> now i get python error when running jeff's utility - http://pastebin.com/H7imp96P
08:33:00 <warlord> Code bug. there is no "gnc_inv" object.
08:33:23 <warlord> Er, maybe. I dont see the raw code.
08:33:48 <warlord> But, invoice = ... and then gnc_inv is used.?
08:34:49 <mikee> Or maybe your invoice doesn't have a job associated?
08:35:36 <mikee> warlord: Can I assume the docs build was OK?
08:42:03 <gour1> it could be there is no job associated..i also submitted ticket to jeff @github
08:42:25 <mikee> warlord: I just saw your mail. Thanks.
08:47:35 <warlord> gour1: that's possible, too.
08:47:48 <warlord> if there's no job then invoice's get-job will return nil
08:52:54 <gour1> i see
08:53:08 <mikee> I think his code assumes a job and there's no error checking for no-job.
08:54:03 <warlord> agree. You probably need to add an 'if job != nil' in there, or the python equivalent
09:00:13 <mikee> gour1: But he gets the customer from the job and the template expects a customer, so it will still crash.
09:08:16 <gour1> tried to attach job, but no luck
09:12:03 *** oolumpixs has joined #gnucash
09:14:15 <oolumpixs> Hi, anyone knows of good gnucash tutorials - to start using gnucash, and second if there are any specific guides to using gnucash in India
09:14:22 <mikee> gour1: Different error?
09:14:57 <mikee> gour1: TypeError: in method 'gncEntryGetDate', argument 1 of type 'GncEntry const *'
09:14:59 <warlord> oolumpixs: 1) Have you tried the GnuCash documentation linked off www.gnucash.org? 2) I have never heard of anything specific to India
09:18:10 <oolumpixs> warlord: thanks did check the documentation and will / am starting there. However was more interested in actual user how to's
09:18:19 <oolumpixs> like say how tax is treated etc
09:32:51 <warlord> oolumpixs: unfortunately tax is so locale specific that there's just not a good way to generalize. You can search the wiki for various suggestions for e.g. GST
09:32:53 <warlord> or VAT
09:33:44 <oolumpixs> warlord: thanks
09:34:00 <warlord> But I recommend you first read through the whole Concepts & Tutorial Guide
09:34:14 <warlord> Then look for answers to questions you still have
09:34:26 <oolumpixs> is it possible to access a pdf , can't find a link to any pdf of the documentation
09:35:51 <oolumpixs> there is this that i have : http://www.amazon.com/Gnucash-2-4-Small-Business-Accounting/dp/1849513864?tag=duckduckgo-lm-20
09:36:14 <oolumpixs> but would also like the official documentation as a pdf -?
09:37:29 <mikee> pdfs are here: http://gnucash.org/docs/v2.4/C/
09:38:24 <oolumpixs> mikee: thanks
09:41:31 <warlord> the PDFs should be linked off the web site.
09:42:16 <warlord> Um, yeah, there it is.. www.gnucash.org -> [Downloads] Documentation
09:42:36 <warlord> Under "2.4 (current stable release)
09:42:39 <warlord> there's an icon for PDF
09:46:15 <oolumpixs> warlord: thanks, mikee already linked me, but am on firefox and could not see the pdf icos ? , however after followig the link on the gnucash page and backtracking the pdf showed up (as in Mikee's link)
09:47:18 <oolumpixs> damn i'm blind its right there, oops and sorry :-)
09:49:35 <warlord> heh
10:11:03 *** ErKa has joined #gnucash
10:16:10 *** fell has joined #gnucash
10:16:12 *** gncbot sets mode: +o fell
10:20:33 *** gour1 has quit IRC
10:21:47 *** gour has joined #gnucash
10:25:05 *** benoitg has joined #gnucash
10:35:08 *** benoitg has quit IRC
10:46:31 *** benoitg has joined #gnucash
10:58:53 *** ErKa has quit IRC
10:59:23 *** Fabzgy has joined #gnucash
11:04:28 *** aqua_ has joined #gnucash
11:23:46 *** oolumpixs has quit IRC
11:53:36 *** john has joined #gnucash
11:53:36 *** gncbot sets mode: +o john
12:00:54 *** Fabzgy has quit IRC
12:04:17 <fell> DimStar: Something with the OBS Checkin Counter is wrong:
12:05:50 <fell> Currently I have OBS:GNOMEs Gnucash 2.4.11-39.2 from 2012.08.07
12:06:50 <fell> and get offered OBS:GNOMEs GnuCash 2.4.11-37.2 from 2012.08.10
12:08:10 <fell> under openSUSE 12.1
12:08:32 <DimStar> Thanks for the message.. I see something went 'wrong' somewhere:
12:08:32 <DimStar> 2012-08-05 18:43:15 d2dd40f1c261c65516bdf1d04be6ca58 36 2.4.11-39.1
12:08:32 <DimStar> 2012-08-09 06:15:30 b66a20f770f53a7be1459c03824a0cab 37 2.4.11-37.1
12:08:47 <DimStar> the counter went down instead of up
12:09:26 *** john has quit IRC
12:09:33 *** Krzysiek_K has joined #gnucash
12:12:50 *** Krzysiek_K has left #gnucash
12:14:23 <DimStar> will see what I can do... more packages were affected it seems.
12:19:27 <fell> and more user confused ;-)
12:31:21 *** john has joined #gnucash
12:31:21 *** gncbot sets mode: +o john
12:49:19 *** jmd has joined #gnucash
13:30:40 <fell> warlord: I am just wondering, if gnucash/DOCUMENTERS shouldn't be the same as gnucash-docs/AUTHORS.
13:31:56 <warlord> Ummm... maybe?
13:32:13 <warlord> When was the former last updated? the latter? And how do they differ?
13:33:22 *** john has quit IRC
13:34:25 <fell> Documenters: 14372, docs/AUTHORS: 17603 (both are outdated, but -docs/Authors is more recent)
13:37:28 <fell> Documenters is shown in Gnucash->Help->About->Documentation
13:39:51 *** john has joined #gnucash
13:39:51 *** gncbot sets mode: +o john
13:43:05 <warlord> They should probably be the same content
13:47:29 <fell> I assume svn has no possibility to link them, but could there be a trigger or something like the chnagelog-fetch
13:49:13 <fell> yes, they have the same structure, ~7 new entries and 1 moved from current to past
13:59:13 <warlord> No, there's no good way to link them.
14:12:23 *** john has quit IRC
14:14:59 *** john has joined #gnucash
14:14:59 *** gncbot sets mode: +o john
14:18:22 *** jmd has quit IRC
14:56:54 *** john has quit IRC
15:10:38 *** fell_ has joined #gnucash
15:10:39 *** gncbot sets mode: +o fell_
15:15:49 *** fell has quit IRC
15:31:47 *** Fabzgy has joined #gnucash
15:53:29 *** gour has quit IRC
15:58:36 *** nafg has joined #gnucash
16:03:59 *** ilisten has joined #gnucash
16:13:53 *** john has joined #gnucash
16:13:53 *** gncbot sets mode: +o john
16:25:36 *** ilisten has quit IRC
16:37:38 *** john has quit IRC
17:03:02 *** aqua_ has quit IRC
17:27:19 *** Fabzgy has quit IRC
17:55:10 *** ErKa has joined #gnucash
18:33:27 *** benoitg1 has joined #gnucash
18:35:58 *** benoitg has quit IRC
18:37:19 *** john has joined #gnucash
18:37:20 *** gncbot sets mode: +o john
18:57:51 *** john has quit IRC
19:23:31 *** john has joined #gnucash
19:23:32 *** gncbot sets mode: +o john
19:38:45 *** puck has quit IRC
19:40:58 *** nafg has quit IRC
19:41:27 *** john has quit IRC
19:42:46 *** puck has joined #gnucash
19:56:36 *** nafg has joined #gnucash
20:13:30 *** fell_ is now known as fell
20:16:47 *** Jimraehl has left #gnucash
20:18:48 *** nafg has quit IRC
20:19:22 <fell> If I try to build 2.4 from svn, I get a bunch of 'scm_*' is deprecated [-Werror=deprecated-declarations], but I didn't set that flag and would have expeted it on trunk and not in the stabel branch.
20:30:51 *** Jimraehl has joined #gnucash
20:44:07 *** ErKa has quit IRC
21:02:33 <fell> Ok, the errors disappeared after uninstalling guile2.
21:15:44 *** fell_ has joined #gnucash
21:15:44 *** gncbot sets mode: +o fell_
21:23:22 *** Askarii has joined #gnucash
21:24:50 *** fell has quit IRC
21:30:22 *** fell_ is now known as fell
22:09:51 *** xnox has quit IRC
22:18:20 *** cellofellow has joined #gnucash
22:19:47 <cellofellow> I'm wondering if someone could point me to a way of scripting or macros for GnuCash. Basically, I want to implement an automatic tithing system into GnuCash, so that whenever there's some income certain accounts, 10% of that added to a liability account.
22:20:03 <cellofellow> Manually doing that is easy enough, I just want to script it.
22:27:40 <fell> cellofellow: at first, you should test the builtin autofill feature.
22:28:43 <cellofellow> where can I find out about that?
22:28:56 <fell> Or you could use http://wiki.gnucash.org/wiki/Python
22:34:42 <cellofellow> woohoo, lots and lots of stuff in the python bindings.
22:34:58 <cellofellow> now the question is how do I set up a binding like that??
22:35:49 <fell> If you created one pattern transaction next time you start typing the same description, GC will remember your pattern and autocomplete it
22:36:53 <cellofellow> would it have to be a split transaction, or something?
22:37:23 <cellofellow> basically, I want it to seem like 10% of everything I earn is actually borrowed.
22:40:23 <fell> something like bank: +100 vs. income 90 + liability:charity 10
22:40:46 *** DimStar has quit IRC
22:41:37 <cellofellow> yeah, something like that
22:41:53 *** DimStar has joined #gnucash
22:42:40 <cellofellow> think I've got it
22:43:17 <fell> btw. did you scan http://svn.gnucash.org/docs/guide ?
22:44:11 <cellofellow> not yet
22:44:36 <fell> next time the ammount differs and you use your template and the builtin calculator to adjust the numbers
22:45:14 <cellofellow> ok
22:45:43 <fell> because here it is 04:45 I need some sleep now, but you got something to read ;)
22:46:33 <cellofellow> thanks
22:46:39 <cellofellow> good night (or morning?)
22:46:52 <fell> thanks.
22:47:05 *** fell is now known as fell_afk
22:52:03 *** cellofellow has quit IRC
23:25:16 *** ErKa has joined #gnucash
23:36:50 *** fell_afk has quit IRC
23:56:54 *** fell_afk has joined #gnucash
23:56:55 *** gncbot sets mode: +o fell_afk