-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'module' object has no attribute 'Person' #420
Comments
Thank you, will have a quick look at this but in the meantime, would it be possible to post the exact snippet you are working on? |
Hello again. Two things about this:
Hope this helps. |
Many thanks for the quick reply I switched to The full snippet is:
|
@fredthedead No worries. The point about the relationship note from above is about discouraging reciprocal relationships. The way this is modelled (in the revised version) establishes one undirected relationship from To an extent, what you are describing here could be part of an improvement in the way But, on where we are now:
Hope this helps. |
Thanks again, removing the relationship from one of the classes works and the two nodes get linked. As you've guessed, the reason I wanted to have the relationship in both entities is for the ease of querying. I'll try to achieve that using cypher as you suggested. Here's the full exception trace, apologies for not including it earlier:
I'm not able to inspect any of these values further since it's running in a notebook environment that doesn't support that. |
I dug deeper into this, I suspect this is something related to the code being ran in a notebook... it looks like the node classes belong to the |
@fredthedead No worries. This trace indicates a problem during the In my setup, I tried a Jupyter notebook and:
But finally got 2 working by stepping through the cells manually, making sure I leave a bit of time between evaluations. Not really sure if this is something to do with the way the cells are evaluated internally by Jupyter, but perhaps the order of execution does matter here. Can you please try running the cells one by one and manually (to ensure that the series of operations is preserved) and let me know if that worked for you? |
I'm trying the basic example from the docs and it's failing on this command
germany = Country(code='DE').save()
returning'module' object has no attribute 'Person'
This is either an issue with the docs (which after re-reading them I still can't figure what's wrong) or with the package...
What's wrong?
(btw the Person/Jim node is create successfully...)
The text was updated successfully, but these errors were encountered: