does not work on mac os x
Closed this issue · 4 comments
Hi,
when running the following file (sent to me by Mr Andres Riancho):
from pybloomfilter import BloomFilter
bf = BloomFilter(10000, 0.001, '/tmp/bloom.remove.me')
bf.add(1)
assert 1 in bf
assert not 2 in bf
print 'Success!'
python2.6 ./bloom-test.py
Traceback (most recent call last):
File "./bloom-test.py", line 3, in
bf = BloomFilter(10000, 0.001, '/tmp/bloom.remove.me')
File "pybloomfilter.pyx", line 125, in
pybloomfilter.BloomFilter.cinit (src/pybloomfilter.c:2347)
MemoryError
python2.7 ./bloom-test.py
Traceback (most recent call last):
File "./bloom-test.py", line 3, in
bf = BloomFilter(10000, 0.001, '/tmp/bloom.remove.me')
File "pybloomfilter.pyx", line 125, in
pybloomfilter.BloomFilter.cinit (src/pybloomfilter.c:2347)
MemoryError
FYI, I installed bloomFilter using easy_install-2.x
it is not a permission problem:
$ touch /tmp/bloom.remove.me
$ echo $?
0
uname -a
Darwin xxxxxx 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48
PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Mac OS X 10.7.5
$ python2.6 --version
2.6.8
$ python2.7 --version
2.7.3
Let us know if there is something we can do to help you correctly implement this lib for OSX :) , I've been using this in my open source project (w3af) for a while and would like to continue using it without incompatibilities with this OS.
As was the case with #22, this is not an OS X specific issue. This is also occurring on recent versions of Arch Linux.
I too have this issue on Ubuntu 11. Seems 0.3.6 (commit 93621b8) works, however when I update to the latest 0.3.6 (commit be40e8c) the issue appears (under w3af).
Also, I tried running the test scripts within the pybloomfiltermmap files and it seems to fail on every version I have tested. (not sure if it is relevant or not).
Awesome! Thanks axiak and oleiade for the fix.
dsplice