The steps I followed:
1/ I've follwed the setup instructions:
- created a virtualenv
- activated the virtualenv
- installed the required dependencies
2/ I've cloned movies-python-py2neo-2.0 on my Mac using the git clone command
3/ I've run "python example.py
At that moment, I can access the index.html at http://127.0.0.1:8080/ on my browsers (Firefox and Chrome).
However, when I searched "Matrix" in the top-left search bar, I receive an error message:
(cypher-app)➜ movies-python-py2neo-2.0 git:(master) ✗ python example.py
Bottle v0.12.7 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8080/
Hit Ctrl-C to quit.
127.0.0.1 - - [10/Aug/2015 11:27:28] "GET / HTTP/1.1" 200 6184
Traceback (most recent call last):
File "/Users/Thibault/test/myGraph/cypher-app/movies-python-py2neo-2.0/bottle.py", line 862, in _handle
return route.call(**args)
File "/Users/Thibault/test/myGraph/cypher-app/movies-python-py2neo-2.0/bottle.py", line 1729, in wrapper
rv = callback(_a, *_ka)
File "example.py", line 20, in get_graph
results = graph.cypher.execute(
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/core.py", line 589, in cypher
metadata = self.resource.metadata
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/core.py", line 198, in metadata
self.get()
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/core.py", line 241, in get
raise_from(self.error_class(message, **content), error)
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/util.py", line 215, in raise_from
raise exception
GraphError: HTTP GET returned response 401
127.0.0.1 - - [10/Aug/2015 11:27:29] "GET /graph HTTP/1.1" 500 746
Traceback (most recent call last):
File "/Users/Thibault/test/myGraph/cypher-app/movies-python-py2neo-2.0/bottle.py", line 862, in _handle
return route.call(**args)
File "/Users/Thibault/test/myGraph/cypher-app/movies-python-py2neo-2.0/bottle.py", line 1729, in wrapper
rv = callback(_a, *_ka)
File "example.py", line 50, in get_search
results = graph.cypher.execute(
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/core.py", line 589, in cypher
metadata = self.resource.metadata
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/core.py", line 198, in metadata
self.get()
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/core.py", line 241, in get
raise_from(self.error_class(message, **content), error)
File "/Users/Thibault/test/myGraph/cypher-app/lib/python2.7/site-packages/py2neo/util.py", line 215, in raise_from
raise exception
GraphError: HTTP GET returned response 401
127.0.0.1 - - [10/Aug/2015 11:27:29] "GET /search?q=Matrix HTTP/1.1" 500 756