johanlundberg / neo4j-django-tutorial Goto Github PK
View Code? Open in Web Editor NEWTutorial to set up a new Django project with Neo4j REST server
Tutorial to set up a new Django project with Neo4j REST server
Exception TypeError: "'NoneType' object is not callable" in <bound method DirectDriver.__del__ of <neo4j.v1.direct.DirectDriver object at 0x7f3b249a6bd0>> ignored
When i run the (python manage.py bootstrap)
neo4j.connection.OperationalError: Server returned unexpected response: 401{
"errors" : [ {
"message" : "No authorization header supplied.",
"code" : "Neo.ClientError.Security.AuthorizationFailed"
} ]
}
i know that I need to provide neo4j username and password how can provide information
In generic_settings.py, the following lines indicate that sqlite3 is the db backend, not neo4j.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': join(NEO4JTUT_ROOT, 'db/neo4jtut.sqlite'),
}
}
Is this a bug?
How to change it to neo4j?
Hi @johanlundberg,
When i execute the command, python neo4jtut/manage.py bootstrap, I am getting the below error. Is there any file to load the sqlite3 database? Appreciate your help.
Traceback (most recent call last):
File "/Users/balajirajaram/anaconda/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/Users/balajirajaram/anaconda/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: neo4japp_movie
when I run command python neo4jtut/manage.py syncdb, I am getting error:
File "/Users/Prashant/Documents/neo4j-django-tutorial/neo4jtut/apps/neo4japp/models.py", line 3, in
from neo4jtut import db
File "/Users/Prashant/Documents/neo4j-django-tutorial/neo4jtut/neo4jtut/db.py", line 3, in
from neo4j import contextmanager
ImportError: No module named neo4j
How can one show the graph view in Django. Will appreciate your help!
I have followed the tutorial and on doing the bootstrap I am getting the below traceback.
Am i Doing something wrong or its an issue.
(tutorialenv) m-mymachine:neo4j-django-tutorial suhail$ python neo4jtut/manage.py bootstrap
Traceback (most recent call last):
File "neo4jtut/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/django/core/management/init.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/django/core/management/init.py", line 208, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/django/core/management/init.py", line 40, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 678, in exec_module
File "", line 205, in _call_with_frames_removed
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/neo4jtut/neo4japp/management/commands/bootstrap.py", line 70, in
Command().handle()
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/neo4jtut/neo4japp/management/commands/bootstrap.py", line 50, in handle
raise e
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 89, in exit
next(self.gen)
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/neo4jtut/neo4jtut/contextmanager.py", line 54, in _transaction
session.commit_transaction()
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/neo4j/v1/bolt.py", line 177, in commit_transaction
self.sync()
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/neo4j/v1/bolt.py", line 164, in sync
self.connection.sync()
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 421, in sync
count += self.fetch()
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 407, in fetch
response.on_failure(metadata or {})
File "/Users/suhail/Workspace/neo4j/neo4j-django-tutorial/tutorialenv/lib/python3.6/site-packages/neo4j/v1/bolt.py", line 222, in on_failure
raise self.error_class(metadata)
neo4j.v1.api.CypherError: 0 (of class java.lang.Long)
requirements.txt shows Django<1.9
Upgrade to neo4jdb-0.0.9 can get the site up.
settings.NEO4J_PASSWORD)
TypeError: init() takes 2 positional arguments but 4 were given
@brajaram Was there no more output, like a traceback?
Hi @johanlundberg,
What is the licensing on this project?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.