I updated my Zope app from Python 2 to Python 3 and all my ZCTextIndexes from ZCatalog are now broken.
TypeError: argument should be integer or bytes-like object, not 'str'
@d-maurer analyzed the problem:
But, the ZCTextIndex uses actually binary data (for the "WID" (= "WordInDEX") encoded document content) and there the heuristics breaks (apparently, no one has already told zodbupdate about this exception).
I am not sure whether I should have created a mapping or this should have been detected by zodbupdate itself, as Products.ZCatalog is pretty much Zope standard.
I updated my Zope app from Python 2 to Python 3 and all my
ZCTextIndexes
from ZCatalog are now broken.@d-maurer analyzed the problem:
Initially reported here: https://community.plone.org/t/typeerror-in-zctextindex-after-upgrade-to-py3/12621
I am not sure whether I should have created a mapping or this should have been detected by
zodbupdate
itself, asProducts.ZCatalog
is pretty much Zope standard.