Errors with snappy after updating conda packages

Dear all,

I am using snappy with the Anaconda distribution and I encountered the following problem.
After updating packages in conda I get the following error when importing snappy in python:
‘module’ object has no attribute ‘compress’

C:\Anaconda\lib\site-packages\dask\bytes\ in ()
30 with ignoring(ImportError):
31 import snappy
—> 32 compress[‘snappy’] = snappy.compress
33 decompress[‘snappy’] = snappy.decompress

If I rerun the code I get another error:
cannot import name dtype

The lines look like this:
C:\Anaconda\lib\site-packages\ in ()
155 except ImportError as e:
156 _raise_build_error(e)
–> 157 from .util.dtype import *

Does anyone have any idea on how to solve this?

Dask wants to use the Google snappy.
But the SNAP snappy is imported which does not have such attributes.

This has already been reported. Along with workaround. Issue: SNAP-936


Hi Marco,
Thanks for your reply. That makes sense. I’ve seen there is a similarly named package but I did not think of that.
I’ve managed to solve it by rolling back to the first version.

conda install --revision number of revision

The lesson is to not perform any bulk update on conda.
Hope this will help others that will have the same issue.