scholrly / neo4django

Drop-in Neo4j/Django integration.
GNU General Public License v3.0
357 stars 83 forks source link

StatusException rised on Administrator's page of neo4j model #233

Closed acriptis closed 10 years ago

acriptis commented 10 years ago

I try to investigate advantages of neo4j database for django project with neo4django (I used sudo pip install -e git+https://github.com/scholrly/neo4django#egg=neo4django-dev for installing it). I installed neo4j server version: "2.0.0".

But when I try to launch administrator page of simple node4j model I catch Exception:

RuntimeError at /admin/neo/coursenode/

('The type node for class CourseNode could not be created in the database.', StatusException())

Request Method: GET
Request URL:    http://127.0.0.1:8000/admin/neo/coursenode/
Django Version: 1.5.1
Exception Type: RuntimeError
Exception Value:    
('The type node for class CourseNode could not be created in the database.', StatusException())
Exception Location: /home/alx/Dropbox/projects/sermonis-server/neo4jexp/src/neo4django/neo4django/db/models/base.py in __type_node, line 396
Python Executable:  /usr/bin/python
Python Version: 2.7.4
Python Path:    
['/home/alx/Dropbox/projects/sermonis-server/neo4jexp',
 '/home/alx/Dropbox/projects/sermonis-server/djtutor_ref/src/django-jenkins',
 '/usr/local/lib/python2.7/dist-packages/TA_Lib-0.4.7-py2.7-linux-x86_64.egg',
 '/usr/local/lib/python2.7/dist-packages/pyttsx-1.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/neomodel-0.3.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/lucene_querybuilder-0.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pytz-2013b-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/py2neo-1.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/neo4jrestclient-2.0.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/requests-2.1.0-py2.7.egg',
 '/home/alx/Dropbox/projects/sermonis-server/neo4jexp/src/neo4django',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/local/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
Server time:    Tue, 14 Jan 2014 19:47:09 -0600

I've found @lukeorland 's message with the similiar error.

Is the solution in using older version of neo4j server (1.8.1) or is there exist another solution of problem with the latest stable version of neo4j server?

mhluongo commented 10 years ago

@acriptis the library is currently only tested against 1.8.2 - 1.9.5. I'm working on supporting 2.0, but unfortunately it's a ways off.

Aside- I noticed you used sudo pip install instead of just pip install- are you using virtualenv, or system-wide packages? I can't recommend virtualenv enough.

acriptis commented 10 years ago

Thank you, @mhluongo , for reply. I'll try 1.9.5 today.

I used sudo pip install to make system-wide installation as far as I don't like to use virtualenv on home server :-)