I'm tring to use kafka-python. It request to install Snappy. So I install it by
But in both time when i'm trying to run python code where i import 'kafka', i got an error.
Error:
AttributeError: module 'snappy' has no attribute 'decompress'
When I run,
import snappy
help(snappy)
Result is:
Help on package snappy:
NAME
snappy
PACKAGE CONTENTS
__main__
_snappy
hadoop_snappy
snappy
snappy_cffi
snappy_cffi_builder
snappy_formats
FILE
(built-in)
I'm using conda in Windows environment (Win 10).
How can i overcome this problem?
I believe you've installed SnapPy a package for geometry. You should install pip install python-snappy
instead of pip install snappy
. The snappy package you're looking for is here Python-snappy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With