dnanhkhoa / simple-bloom-filter Goto Github PK
View Code? Open in Web Editor NEWA simple implementation of Bloom Filter and Scalable Bloom Filter for Python 3.
License: MIT License
A simple implementation of Bloom Filter and Scalable Bloom Filter for Python 3.
License: MIT License
rastadollo@Bitcoin:~$ pip install simplebloomfilter
Collecting simplebloomfilter
Using cached https://files.pythonhosted.org/packages/dc/6b/ec90026a1eb6f06f8d6e73c5a99e9710acf3949ef1a7770406c4925073b9/simplebloomfilter-1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-9DSIy5/simplebloomfilter/setup.py", line 17, in
long_description=readme(file_name='README.md'),
File "/tmp/pip-build-9DSIy5/simplebloomfilter/setup.py", line 10, in readme
with open(file_name, 'r', encoding='UTF-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Linux ubuntu 18.04
Python 3.6
UPD: The problem is solved, installing 64 bits os.
I get this error:
bloom_filter = BloomFilter.load(fp) ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/bloomfilter/bloomfilter.py", line 40, in load assert bloom_filter.__filter.length() == filter_size or bloom_filter.__filter.length() == filter_size + ( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'bitarray.bitarray' object has no attribute 'length'
python3 loop_15.py
Traceback (most recent call last):
File "loop_15.py", line 28, in
bf = ScalableBloomFilter.load(bf_file)
File "/usr/local/lib/python3.8/dist-packages/bloomfilter/bloomfilter.py", line 140, in load
scalable_bloom_filter.__filters.append(BloomFilter.load(fp, filter_size))
File "/usr/local/lib/python3.8/dist-packages/bloomfilter/bloomfilter.py", line 40, in load
assert bloom_filter.__filter.length() == filter_size or bloom_filter.__filter.length() == filter_size + (
AttributeError: 'bitarray.bitarray' object has no attribute 'length'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.