File "server3.py", line 93, in update_index
w.update_document(**idata)
File "venv\lib\site-packages\whoosh\writing.py", line 210, in __exit__
self.commit()
File "venv\lib\site-packages\whoosh\writing.py", line 1037, in commit
self.writer.commit(*args, **kwargs)
File "venv\lib\site-packages\whoosh\writing.py", line 922, in commit
finalsegments = self._merge_segments(mergetype, optimize, merge)
File "venv\lib\site-packages\whoosh\writing.py", line 827, in _merge_segments
return mergetype(self, self.segments)
File "venv\lib\site-packages\whoosh\writing.py", line 101, in MERGE_SMALL
writer.add_reader(reader)
File "venv\lib\site-packages\whoosh\writing.py", line 710, in add_reader
self.add_postings_to_pool(reader, basedoc, docmap)
File "venv\lib\site-packages\whoosh\writing.py", line 647, in add_postings_to_pool
for item in items:
File "venv\lib\site-packages\whoosh\writing.py", line 583, in _process_posts
for fieldname, text, docnum, weight, vbytes in items:
File "venv\lib\site-packages\whoosh\reading.py", line 429, in iter_postings
yield (fieldname, btext, m.id(), m.weight(), m.value())
File "venv\lib\site-packages\whoosh\codec\whoosh3.py", line 998, in value
self._read_values()
File "venv\lib\site-packages\whoosh\codec\whoosh3.py", line 1119, in _read_values
assert isinstance(vs, bytes_type)
AssertionError
Are you trying to reuse the index created by Python 2.7? In my experience that doesn't work, you have to recreate the index with Python 3.8.
Regards,
Florian Schulze
--
You received this message because you are subscribed to the Google Groups "Whoosh" group.
To unsubscribe from this group and stop receiving emails from it, send an email to whoosh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/whoosh/6c5b6e62-7fb0-4753-ac6b-9aa853f0692b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to who...@googlegroups.com.