[Neo] Can't find index

2010-03-16 Thread Ryan Rosario
Hi, I am using neo4j.py and I created an index using the command index = neo.index(nodes, create=True) When I try to access the index from another script using index = neo.index(nodes) with the same database data directory, I get: Traceback (most recent call last): File incidenceMatrix.py,

[Neo] Creating an Edge list from graph (Python)

2010-03-16 Thread Ryan Rosario
Hi, I have a large graph and I am trying to extract the list of edges that correspond to some relationship foo, node A - node B. I cannot figure out how to do this. I have tried using a traversal class, but I am not having any luck. neo = NeoService(the path) class Follow(neo4j.Traversal):

Re: [Neo] neo4py.py Cannot import NeoService

2010-01-22 Thread Ryan Rosario
When downloading the module, a directory called neo4j.py is created. This needs to be changed. svn export https://svn.neo4j.org/components/neo4j.py/trunk neo4j.py R. ___ Neo mailing list User@lists.neo4j.org

Re: [Neo] neo4py.py Cannot import NeoService

2010-01-21 Thread Ryan Rosario
Hi Tobias, I found the problem. For some reason, a file named neo4j.pyc was created in the directory containing the directory neo4j.py/.This directory also contains my code. It seems that this caused some sort of conflict. I am curious if the naming of the module neo4j.py confuses the interpreter

[Neo] neo4py.py Cannot import NeoService

2010-01-20 Thread Ryan Rosario
Hi, I saw a post about this same issue in the archives, but the user's only solution was to reinstall Python2.5 and I am hoping to avoid that. I am using Python 2.6.1 that comes with MacOS X 10.6. I installed Neo4j using the Apoc distribution, version 0.5. I am using neo4j.py via the JPype