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

Expected bytes, got str #26

Open
FengWu1206 opened this issue Jul 30, 2019 · 5 comments
Open

Expected bytes, got str #26

FengWu1206 opened this issue Jul 30, 2019 · 5 comments

Comments

@FengWu1206
Copy link

p = pyreBloom.pyreBloom('wufengBloomFilter', 100000, 0.01).decode('utf-8')
File "pyreBloom.pyx", line 47, in pyreBloom.pyreBloom.cinit (pyreBloom/pyreBloom.c:977)
TypeError: Expected bytes, got str

@dlecocq
Copy link

dlecocq commented Jul 30, 2019

What version of Python are you using? I don't know that we've gotten Python 3 support going yet :-/

@qshine
Copy link

qshine commented Aug 13, 2019

I use python3.7.0 also see it when I execute
p.contains('h') or p.contains(b'h'), both raise TypeError: expected bytes, str found

@pocket-live
Copy link

I used python3.7.3 and got the same error

p = pyreBloom.pyreBloom('user_data',120000,0.001)

File "pyreBloom.pyx", line 47, in pyreBloom.pyreBloom.cinit (pyreBloom/pyreBloom.c:977)
TypeError: Expected bytes, got str

@pocket-live
Copy link

pocket-live commented Feb 1, 2020

I use python2.7 is ok. It should be unsupported. I still use the redis 4.0+ plugin.

@xutaoding
Copy link

I use python3.8.6,got the same error

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

5 participants