Familiar with the concept but have never actually used it.
On 15 July 2014 23:41, Alan Robertson <al...@unix.sh> wrote:
Yes. There are lots of ways to do that. After all, it's all open source :-D.
Are you familiar with docker?
On 07/15/2014 04:19 PM, Nigel Small wrote:
Can you share some code that I can run to recreate the issue?
Cheers
Nigel
On 15 July 2014 23:09, Alan Robertson <al...@unix.sh> wrote:
Neo4j package: neo4j-2.1.2-1.noarch
# pip list | grep py2neo
py2neo (1.6.4)
The context is this:
I just did a commit of a transaction which added nodes to the database, and am now trying to retrieve these same nodes by the ids for them which were returned by the transaction.
tests.cma_test TestCMABasic.test_several_startups ... error: tests.cma_test TestCMABasic.test_several_startups
Traceback (most recent call last):
File "./tests/cma_test.py", line 506, in test_several_startups
CMAinit(io, cleanoutdb=True, debug=DEBUG)
File "./cmainit.py", line 75, in __init__
CMAdb.store.commit()
File "./store.py", line 912, in commit
for attr in newnode.get_properties():
File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py", line 1398, in get_properties
self._properties = assembled(self._properties_resource._get()) or {}
File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py", line 367, in _get
raise ClientError(e)
ClientError: Cannot find node with id [0] in database.
ERROR in 2.49s
tests.cma_test TestCMABasic.test_startup ... error: tests.cma_test TestCMABasic.test_startup
Traceback (most recent call last):
File "./tests/cma_test.py", line 433, in test_startup
CMAinit(io, cleanoutdb=True, debug=DEBUG)
File "./cmainit.py", line 75, in __init__
CMAdb.store.commit()
File "./store.py", line 912, in commit
for attr in newnode.get_properties():
File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py", line 1398, in get_properties
self._properties = assembled(self._properties_resource._get()) or {}
File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py", line 367, in _get
raise ClientError(e)
ClientError: Cannot find node with id [1] in database.
--
Alan Robertson <al...@unix.sh> - @OSSAlanR
"Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions." - William Wilberforce
-- Alan Robertson <al...@unix.sh> - @OSSAlanR "Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions." - William Wilberforce
--
Alan Robertson <al...@unix.sh> - @OSSAlanR
"Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions." - William Wilberforce
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
A little more detail about the failure mode:
I added a single node to the database, related it to itself three ways, added it to the index.
committed the transaction - returned results from the commit looked correct
Tried a get_properties() on the object returned from the transaction commit
Just before the get_properties() failed, I printed that object (Nigel's Neo4j node object), and got this result:
{"a":52,"c":3.14159,"b":2,"name":"Drone121"}
[I also printed the node _id value -- which was 0]
Whoops. Rather, I tried it with 1.6.4 and then whatever code is in the 1.7 branch :-)