Hello,
I am trying to create a relationship between 2 objects.
Here is the code:
Person=Person.getUser(self,UserName)
print (user.__class__) # This prints <class 'py2neo.core.Node'>
fruit=Fruit.getFruit(self,FruitName)
print (fruit.__class__) # This also prints <class 'py2neo.core.Node'>
userLikesFruit = Relationship(user, "LIKES", fruit)
print (userLikesItem.__class__) # This prints <class 'py2neo.core.Relationship'>
try:
graph.create_unique(userLikesFruit)
except:
print ("Exception in Creating user likes relationship", sys.exc_info())
The error I get is:
Exception in Creating user likes relationship (<class 'AttributeError'>,
AttributeError("'NoneType' object has no attribute 'bound'",), <traceback
object at 0x1068b5f88>)
What am I doing wrong?
- Shekar
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.