Re: [Neo4j] Python embedding: problems with shutdown and threads

2011-11-04 Thread Michael Rene Armida
You are awesome. I'll check this out soon; I switched my project back to using sqlite, but I definitely want to use neo, so I'll give it a whirl. On Fri, Nov 4, 2011 at 4:12 AM, Jacob Hansson < jacob.hans...@neotechnology.com> wrote: > I've just pushed an update to handle the attachThreadToJVM s

Re: [Neo4j] Python embedding: problems with shutdown and threads

2011-11-03 Thread Michael Rene Armida
edded-reference-core.html > > > We should perhaps set up the db to shut itself down properly automatically > if it detects that python is shutting down.. We decided against that > before, since we felt like "we don't own the application lifecycle". WDYT? > >

[Neo4j] Python embedding: problems with shutdown and threads

2011-11-02 Thread Michael Rene Armida
I'm having some weird problems with threading on shutdown. As I previously discovered, using neo4j in a multi-threaded Python app requires complete segregation of neo4j into a single thread. That all works fine for creating a database, however, it appears that shutting one down is a bit of a myst

Re: [Neo4j] User Digest, Vol 56, Issue 12

2011-11-02 Thread Michael Rene Armida
I hadn't. I'm still confused about how I would combine that with embedding, though; I don't want to run a standalone neo4j daemon. Because the app I'm embedding into will be running Python, I figure the current setup may not be all that sub-optimal, now that the threading problem is out of the wa

Re: [Neo4j] Java segfault using paste and Python bindings

2011-11-02 Thread Michael Rene Armida
I had no idea that neo4j had a REST interface; I am essentially implementing my own REST interface in order to use neo4j embedded in a desktop app. I will have to look into that more to see if there's an easy way to embed the server and still communicate to it via the REST API. Thanks for the poi

Re: [Neo4j] Java segfault using paste and Python bindings

2011-11-01 Thread Michael Rene Armida
safe, it must be constrained to a single thread when used from Python. But that's not too disappointing, considering. On Sat, Oct 29, 2011 at 4:25 PM, Michael Rene Armida wrote: > I am attempting to use Paste to serve a small web app that uses neo4j via > the Python bindings. I get a seg

[Neo4j] Java segfault using paste and Python bindings

2011-10-29 Thread Michael Rene Armida
I am attempting to use Paste to serve a small web app that uses neo4j via the Python bindings. I get a segfault whenever I try to create a new database via 'neo4j.GraphDatabase'. I have narrowed this down to the following minimal sample: http://pastebin.com/MkNRvLR6 The top of the stack trace l