From: dick <dic...@or...> - 2009-11-26 21:37:31
|
hi list, We are trying to use rlib in our application (very large python application with postgresql) and want to dynamically create XML to generate standard reports on the fly. Currently we are trying to get started. Now I have a couple of problems. 1. When we compile the library, we do not get rlib, but only an rlibcompat that we can import. Why is this happening. However, if it still works no problem. 2. When we try one of the simple examples ---------//------------- import sys sys.path.append('/usr/lib/python2.6/site-packages') import rlibcompat as rlib myrlib = rlib.rlib_init(); rlib.rlib_add_datasource_postgre(myrlib, "cvix", "Host=localhost;Database=cvix;User Id=postgres"); rlib.rlib_add_query_as(myrlib, "cvix", "select * FROM adeuxproductie.producten", "products"); rlib.rlib_add_report(myrlib, "products.xml"); rlib.rlib_set_output_format_from_text(myrlib, "pdf"); rlib.rlib_execute(myrlib); rlib.rlib_spool(myrlib); rlib.rlib_free(myrlib); ---------//------------- I get the following error: desktop:~/rlib-1.3.7/src/examples/python$ python compat-example.py Could Not Load POSTGRES Input [/usr/local/lib/libr-postgres.so: undefined symbol: g_free] rlib_add_query_as: Could not find input source [cvix]! No queries added to report It looks like it is trying to use g_free that is not available. Is that because rlib simply does not work with newer versions of Postgresql? -- Cheers, D. Kniep |