Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Incompatibility with bitarray >= 2.0.0 #46

Open
arterrey opened this issue Apr 24, 2021 · 1 comment
Open

Incompatibility with bitarray >= 2.0.0 #46

arterrey opened this issue Apr 24, 2021 · 1 comment

Comments

@arterrey
Copy link

Getting an exception using this library...

...
  File "/home/adam/v/tf/evenly/ws2/app/bloom.py", line 25, in get_bloom_filters
    green_bloom = ScalableBloomFilter.fromfile(infile)
  File "/home/adam/v/tf/evenly/ws2/buildout/eggs/pybloom_live-3.0.0-py3.7.egg/pybloom_live/pybloom.py", line 368, in fromfile
    filter.filters.append(BloomFilter.fromfile(f, fl))
  File "/home/adam/v/tf/evenly/ws2/buildout/eggs/pybloom_live-3.0.0-py3.7.egg/pybloom_live/pybloom.py", line 216, in fromfile
    if filter.num_bits != filter.bitarray.length() and \
NotImplementedError: self.length() has been deprecated since 1.5.1, and was removed in 2.0.0.  Use len(self) instead.

I understand that that NotImplementedError comes from bit array, although the trace back doesn't make that super clear - looks like it is from a c file https://github.com/ilanschnell/bitarray/blob/cdb9b11cb144b373f49ac5b5b9015f1bfa2982d7/bitarray/_bitarray.c#L644

@a1exlism
Copy link

a1exlism commented Jul 1, 2021

This issue is fixed and padding PR response.
You can use this repo here temporarily.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants