Comments (15)
Below is the traceback:
Exception ignored in: <bound method Driver.del of <neo4j.v1.direct.DirectDriver object at 0x1084784a8>>
Traceback (most recent call last):
File "/home/lib/python3.6/site-packages/neo4j/v1/api.py", line 139, in del
File "/home/lib/python3.6/site-packages/neo4j/v1/api.py", line 170, in close
File "/home/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 427, in close
File "/home/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 416, in remove
File "/home/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 334, in close
File "/home/lib/python3.6/logging/init.py", line 1305, in info
File "/home/lib/python3.6/logging/init.py", line 1546, in isEnabledFor
TypeError: '>=' not supported between instances of 'int' and 'NoneType'
Exception ignored in: <bound method Connection.del of <neo4j.bolt.connection.Connection object at 0x109217588>>
Traceback (most recent call last):
File "/home/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 181, in del
File "/home/lib/python3.6/site-packages/neo4j/bolt/connection.py", line 334, in close
File "/home/lib/python3.6/logging/init.py", line 1305, in info
File "/home/lib/python3.6/logging/init.py", line 1546, in isEnabledFor
TypeError: '>=' not supported between instances of 'int' and 'NoneType'
from neo4j-django-tutorial.
Thank you for the traceback.
I think that looks very much like a bug in the neo4j-driver module. I will look in to it if I find the time.
from neo4j-django-tutorial.
When using migrate command:
Exception TypeError: "'NoneType' object is not callable" in <bound method DirectDriver.__del__ of <neo4j.v1.direct.DirectDriver object at 0x7f3b249a6bd0>> ignored
from neo4j-django-tutorial.
From what I have been able to find this is an exception thrown from the neo4j driver when the connection is already closed. The migration is successful anyway, right?
from neo4j-django-tutorial.
Im not sure. When bootstrapping I get this error:
Traceback (most recent call last):
File "neo4jtut/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/home/user/tutorials/neo4j-django-tutorial/neo4jtut/neo4japp/management/commands/bootstrap.py", line 51, in handle
raise e
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/home/user/tutorials/neo4j-django-tutorial/neo4jtut/neo4jtut/contextmanager.py", line 54, in _transaction
session.commit_transaction()
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/neo4j/v1/api.py", line 446, in commit_transaction
result.consume()
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/neo4j/v1/api.py", line 740, in consume
list(self)
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/neo4j/v1/api.py", line 708, in records
keys = self.keys()
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/neo4j/v1/api.py", line 698, in keys
self._session.fetch()
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/neo4j/v1/api.py", line 356, in fetch
detail_count, _ = self._connection.fetch()
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/neo4j/bolt/connection.py", line 287, in fetch
response.on_failure(summary_metadata or {})
File "/home/user/tutorials/neo4j-django-tutorial/tutorialenv/local/lib/python2.7/site-packages/neo4j/v1/result.py", line 69, in on_failure
raise CypherError.hydrate(**metadata)
neo4j.exceptions.DatabaseError: 0 (of class java.lang.Long)
Exception TypeError: "'NoneType' object is not callable" in <bound method DirectDriver.__del__ of <neo4j.v1.direct.DirectDriver object at 0x7fa166ac6bd0>> ignored
So its not working at least
from neo4j-django-tutorial.
Ok, you need to change cypher.default_language_version to 3.1 in neo4j.conf, please see #11.
from neo4j-django-tutorial.
I found a usage of the now deprecated START cypher statement. So now the above comment can be disregarded.
I still see the Exception TypeError: "'NoneType' object is not callable" in <bound method DirectDriver.del of <neo4j.v1.direct.DirectDriver object at 0x7f3b249a6bd0>> ignored error but the app works as expected,
from neo4j-django-tutorial.
I am using Docker though, I can't change the neo4j.conf then, right?
from neo4j-django-tutorial.
Well you can mount a config file from the outside, but that is beside the point now after my last update.
Just do a git pull and try the bootstrap again.
from neo4j-django-tutorial.
I just ran another docker container with version 3.1 so working now
from neo4j-django-tutorial.
However the website is really slow, and cant load the movies or persons page at all. loads forever. does it work for you?
from neo4j-django-tutorial.
Yes, it works for me. I just ran through the tutorial with a new clone of the repo and the latest Neo4j docker image (3.2.1).
from neo4j-django-tutorial.
cloned new repo and ran it just like you, but I still cant get into the movies or persons page on the website. The homepage and admin page works fine though
from neo4j-django-tutorial.
Can you open a new issue to discuss this problem?
from neo4j-django-tutorial.
Looking at the __del__ logging exception error messages generated by the bootstrap step. It's probably benign because it only happens at the end of the program during the final garbage collection. It's still disconcerting though. It looks like the exception and message could be avoided by adding the following line at the bottom of the bootstrap.py file:
db.manager.driver.close()
with indention to indicate it's the last line of that final method.
There's a similar message when one ctrl-c's out of the runserver step. It looks like it would be much more difficult to eliminate that and less disconcerting. The best solution might be to ask the Neo4j team to evaluate if that exception passing through the Driver.__del__() method is always benign. If so they probably should modify __del__() to catch the exception and swallow it. Or modify the close() method to check for parameters that have already been GC'd so as to avoid generating the exception in the first place.
from neo4j-django-tutorial.
Related Issues (11)
- Why sqlite3 is still used in generic_settings.py? HOT 1
- Getting a traceback when trying to bootstrap HOT 10
- Exception TypeError when migrating HOT 3
- "message" : "No authorization header supplied.", HOT 4
- ImportError: No module named neo4j HOT 1
- neo4jdb-0.0.8 doesn't work with Python 3.5 + Neo4j 2.3.x HOT 1
- Graphical view in Django HOT 1
- Licensing HOT 2
- can we expect support for above or django 1.9 soon? HOT 1
- sqlite3.OperationalError: no such table: neo4japp_movie HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.