GNOME Bugzilla – Bug 639980
python fails getting invoice entry data
Last modified: 2018-06-29 22:52:25 UTC
Created attachment 178765 [details] [review] Add EntryList and _gncEntry objects to list typemap. I'm trying to use the python bindings to fetch entry (line-item) data from an invoice. See http://pastebin.com/fy06CPup for the test GnuCash XML file I'm using. (It just has two accounts and an invoice with three line items.) I expect the attached script to print the three line items from the invoice in that file, but instead it dies with: % gnucash-env python invoice_read.py test2.gnucash * 15:07:39 WARN <gnc.backend.dbi> [gnc_module_init_backend_dbi()] No DBD drivers found Traceback (most recent call last):
+ Trace 225594
print entry.GetDescription()
*process_list_convert_to_instance(meth_func_args) )
return _gnucash_core_c.gncEntryGetDescription(*args)
'GncEntry const *' Other methods on the Entry objects yield similar results. Running on Ubuntu Lucid. Tested with 2.4.0-1~getdeb1~lucid from getdeb.net and from svn r20126 with the same results. Patch attached.
Created attachment 178766 [details] Script that exercises the bug.
Comment on attachment 178765 [details] [review] Add EntryList and _gncEntry objects to list typemap. Look good!
Comment on attachment 178765 [details] [review] Add EntryList and _gncEntry objects to list typemap. r20129, thanks!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=639980. Please update any external references or bookmarks.