且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在python中将快照与Avro结合使用时的问题

更新时间:2023-10-03 14:15:58

来自avro/datafile.py

from avro/datafile.py

try:
  import snappy
  has_snappy = True
except ImportError:
  has_snappy = False

...

# Codecs supported by container files:
VALID_CODECS = frozenset(['null', 'deflate'])
if has_snappy:
  VALID_CODECS = frozenset.union(VALID_CODECS, ['snappy'])

所以您必须安装python-snappy lib

so you have to install python-snappy lib