prashnts / pybloomfiltermmap3

Fast Python Bloom Filter using Mmap
https://github.com/prashnts/pybloomfiltermmap3
MIT License
130 stars 24 forks source link

Error using to_bases64 #51

Closed relinda2019 closed 1 year ago

relinda2019 commented 1 year ago

Traceback (most recent call last): File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 1438, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/Users/relinda/PycharmProjects/GEELY/geeFedScope/test_22.py", line 9, in base64_bytes = bloom_filter.to_base64() File "src/pybloomfilter.pyx", line 521, in pybloomfilter.BloomFilter.to_base64 File "src/pybloomfilter.pyx", line 290, in pybloomfilter.BloomFilter.filename.get File "src/pybloomfilter.pyx", line 266, in pybloomfilter.BloomFilter._name NotImplementedError: Cannot access .name on an in-memory BloomFilter

How to solve it? Very thankful!!

prashnts commented 1 year ago

Your filter is in-memory, and it's mentioned in Readme that in-memory filters cannot be persisted (yet).