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

'IFBucket' object has no attribute 'byValue' when running with PURE_PYTHON #187

Open
justincinmd opened this issue Dec 16, 2022 · 1 comment

Comments

@justincinmd
Copy link

The dedupe package uses BTree, and raises the following exception when running under pypy 3.8 or python 3.10 with the PURE_PYTHON environment variable set to 1.

  File "/etc/build/venvs/default/lib/python3.10/site-packages/dedupe/tfidf.py", line 39, in search
    center for score, center in self._index.apply(query_list, threshold)
  File "/etc/build/venvs/default/lib/python3.10/site-packages/dedupe/canopy_index.py", line 76, in apply
    filtered_results: list[tuple[float, int]] = results.byValue(qw * threshold)
  File "/etc/build/venvs/default/lib/python3.10/site-packages/persistent/persistence.py", line 292, in __getattribute__
    return oga(self, name)
AttributeError: 'IFBucket' object has no attribute 'byValue'

The byValue method is missing when the results object is inspected in a debugger. In python 3.10 with the C extensions, byValue works correctly.

@icemac
Copy link
Member

icemac commented Dec 16, 2022

@jamadden @d-maurer Do you have an idea on this issue?

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