Skip to content

when i run pass_bookmarks_example.py ,i got the following error, what am i doing wrong? #249

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

Closed
pangguoming opened this issue Jul 4, 2018 · 3 comments
Labels

Comments

@pangguoming
Copy link

pangguoming commented Jul 4, 2018

D:\PythonWorkspace\test\venv\Scripts\python.exe D:/PythonWorkspace/test/pass_bookmarks_example.py
Traceback (most recent call last):
File "D:\PythonWorkspace\test\venv\lib\site-packages\neo4j\v1\api.py", line 56, in last_bookmark
n[i] = int(n[i])
ValueError: invalid literal for int() with base 10: 'tx46'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/PythonWorkspace/test/pass_bookmarks_example.py", line 68, in
exam.main()
File "D:/PythonWorkspace/test/pass_bookmarks_example.py", line 62, in main
session_c.write_transaction(self.create_friendship, "Alice", "Bob")
File "D:\PythonWorkspace\test\venv\lib\site-packages\neo4j\v1\api.py", line 497, in write_transaction
return self._run_transaction(WRITE_ACCESS, unit_of_work, *args, **kwargs)
File "D:\PythonWorkspace\test\venv\lib\site-packages\neo4j\v1\api.py", line 462, in _run_transaction
self.begin()
File "D:\PythonWorkspace\test\venv\lib\site-packages\neo4j\v1\api.py", line 522, in begin
parameters = {"bookmark": self.last_bookmark(), "bookmarks": self._bookmarks}
File "D:\PythonWorkspace\test\venv\lib\site-packages\neo4j\v1\api.py", line 384, in last_bookmark
last = last_bookmark(last, bookmark)
File "D:\PythonWorkspace\test\venv\lib\site-packages\neo4j\v1\api.py", line 58, in last_bookmark
raise ValueError("Invalid bookmark: {}".format(b0))
ValueError: Invalid bookmark: neo4j:bookmark:v1:tx46

Process finished with exit code 1

@zhenlineo
Copy link
Contributor

Hi @pangguoming

The bookmark format looks correct and our bookmark tests seems working as normal too.

Which neo4j version that you are using to run this test against? Are you running this test direct with the latest source code?

Regards,
Zhen

@zhenlineo
Copy link
Contributor

Seems a bug. Thanks for reporting. We will have a deeper look at it.

@zhenlineo zhenlineo added the bug label Jul 4, 2018
@pangguoming
Copy link
Author

i use latest version 1.6.0

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

No branches or pull requests

3 participants