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

ZCTextIndex uses binary data for WID #109

Open
jugmac00 opened this issue Jul 27, 2020 · 2 comments
Open

ZCTextIndex uses binary data for WID #109

jugmac00 opened this issue Jul 27, 2020 · 2 comments

Comments

@jugmac00
Copy link
Member

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).

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, as Products.ZCatalog is pretty much Zope standard.

@icemac
Copy link
Member

icemac commented Jul 28, 2020

This should probably be fixed in Products.ZCatalog. Moving the issue over there.

@icemac icemac transferred this issue from zopefoundation/zodbupdate Jul 28, 2020
@icemac
Copy link
Member

icemac commented Oct 7, 2020

Might be a duplicate of #83.

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

2 participants