Cannot input Avro file

User 3316 | 3/6/2016, 11:02:58 PM

Hi I tried to input avro file using SArray.from_avro() but I get the error like this:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/graphlab/datastructures/sarray.py", line 546, in fromavro proxy.loadfromavro(filename) File "graphlab/cython/cysarray.pyx", line 79, in graphlab.cython.cysarray.UnitySArrayProxy.loadfromavro File "graphlab/cython/cysarray.pyx", line 81, in graphlab.cython.cysarray.UnitySArrayProxy.loadfromavro RuntimeError: Runtime Exception. Unknown codec in data file: snappy

how can I fix it?

Comments

User 1359 | 3/7/2016, 4:30:17 AM

Can you check that you have the Python snappy package installed?

from a terminal: pip install python-snappy