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

Can't get digest based on byte array from open() or file path #3

Open
rjzak opened this issue Oct 23, 2019 · 0 comments
Open

Can't get digest based on byte array from open() or file path #3

rjzak opened this issue Oct 23, 2019 · 0 comments

Comments

@rjzak
Copy link

rjzak commented Oct 23, 2019

Object is not writable.

Traceback (most recent call last):
  File "testingLZJD.py", line 39, in <module>
    similarity = pyLZJD.sim(pyLZJD.digest(open(f1,"rb").read()), pyLZJD.digest(open(f2,"rb").read()))
  File "/usr/local/lib/python3.6/dist-packages/pyLZJD-0.0.2-py3.6.egg/pyLZJD/lzjd.py", line 45, in digest
    return lzjd_cython.lzjd_f(b, hash_size, false_seen_prob)
  File "lzjd_cython.pyx", line 134, in pyLZJD.lzjd_cython.lzjd_f
  File "stringsource", line 646, in View.MemoryView.memoryview_cwrapper
  File "stringsource", line 347, in View.MemoryView.memoryview.__cinit__
BufferError: Object is not writable.
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