Skip to content
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

python import_all.py --neo4j_username = neo4j --neo4j_password= my_pwd #4

Open
shashank7596 opened this issue Jun 27, 2017 · 0 comments

Comments

@shashank7596
Copy link

trying the above statement with my username and pwd but it throws error

Traceback (most recent call last):
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/core.py", line 258, in get
response = self.__base.get(headers=headers, redirect_limit=redirect_limit, **kwargs)
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/packages/httpstream/http.py", line 966, in get
return self.__get_or_head("GET", if_modified_since, headers, redirect_limit, **kwargs)
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/packages/httpstream/http.py", line 943, in __get_or_head
return rq.submit(redirect_limit=redirect_limit, **kwargs)
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/packages/httpstream/http.py", line 452, in submit
return Response.wrap(http, uri, self, rs, **response_kwargs)
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/packages/httpstream/http.py", line 489, in wrap
raise inst
py2neo.packages.httpstream.http.ClientError: 401 Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "import_all.py", line 204, in
create_schema(graph)
File "import_all.py", line 139, in create_schema
graph.cypher.execute("CREATE CONSTRAINT ON (a:Airport) ASSERT a.id IS UNIQUE;")
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/core.py", line 661, in cypher
metadata = self.resource.metadata
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/core.py", line 213, in metadata
self.get()
File "/home/shashank/anaconda3/lib/python3.5/site-packages/py2neo/core.py", line 261, in get
raise Unauthorized(self.uri.string)
py2neo.error.Unauthorized: http://localhost:7474/db/data/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant