Hey Ben,

I hadn't considered that yet. I think the program crashes because it's running two queries in parallel with the same client context, which tends to blow up. I think supporting parallel queries should definitely be possible. I'll look into it later this week.

Best,
   Mark

On Wed, Oct 28, 2015 at 12:29 PM, Ben Jeffery <ben.jeffery@well.ox.ac.uk> wrote:
Mark,

Great! The changes you made have fixed the build on my end.
I also wanted to ask about concurrency - I've had a quick play with releasing the GIL in the extension code - this works well for allowing python to do other things while the query is running, but segfaults if I try to run two queries in separate python threads. Do you plan to support that kind of concurrency?

Thanks,
Ben

On Mon, 26 Oct 2015 at 14:15 Mark Raasveldt <mark.raasveldt@gmail.com> wrote:
Hey Ben,

Glad to see you managed to resolve the issue, I just made some changes to the linker as well to hopefully make it more portable. MonetDBLite for Python is still very much in a "it works on my machine" state. Feel free to use it but be aware that it is not particularly stable yet. If you encounter any issues/bugs/segfaults feel free to contact me and I will try to resolve them.

Best,
   Mark


On Mon, Oct 26, 2015 at 2:21 PM, Ben Jeffery <ben.jeffery@well.ox.ac.uk> wrote:
Hi,
I fixed this issue by swapping 
../../sql/backends/monet5/lib_sql 
and
../../monetdb5/extras/pyapi/lib_pyapi
in tools/embeddedpy/Makefile.ag

And now have a working module, thanks!
Ben

On Mon, 26 Oct 2015 at 01:17 Ben Jeffery <ben.jeffery@well.ox.ac.uk> wrote:
Hi,
I'm aware the embedded "monetdblite" library isn't released yet - but it seems perfect for my use case so am very excited to try it. I've tried compiling the source from the pyapi branch but run into: 
"ImportError: /usr/local/lib/python2.7/dist-packages/monetdb5/lib/monetdb5/lib_pyapi.so: undefined symbol: batint_dec2_dbl" when I 
"import monetdblite" on Linux Mint 17 with python 2.7 or 3.4

Any chance of some build instructions for this module? Or do I just need to be patient for the release? :)

Ta,
Ben

_______________________________________________
users-list mailing list
users-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/users-list


_______________________________________________
users-list mailing list
users-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/users-list

_______________________________________________
users-list mailing list
users-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/users-list