pyLZJD icon indicating copy to clipboard operation
pyLZJD copied to clipboard

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

Open rjzak opened this issue 5 years ago • 0 comments

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.

rjzak avatar Oct 23 '19 00:10 rjzak