Hi Andrey,

I just found that there are two Python-related snappy packages - both are
useful packages, the first one is "for studying the topology and geometry
of 3-manifolds, with a focus on hyperbolic structures" --
https://snappy.math.uic.edu/, see installation method,
https://pypi.org/project/snappy/

This is one currently installed, you can verify this by:

import snappy
print(snappy.__version__)
print(snappy.__file__)
print(dir(snappy))

The second one is used by a number of Python packages for compression,
"Python library for the snappy compression library from Google (
http://google.github.io/snappy/)": https://pypi.org/project/python-snappy/
and can be installed as

sudo apt-get install libsnappy-dev (or similar method)
followed by
pip3 install python-snappy
It seems that you need to uninstall python-snappy and reinstall it
following the order above, see
https://stackoverflow.com/questions/48535799/module-snappy-has-no-attribute-decompress

Kind regards,

Elimboto


On Tue, Apr 6, 2021 at 12:10 PM Elimboto Yohana <[email protected]> wrote:

> Hi Andrey,
>
> Thank you for implementing my requests. But, re-installing the snappy
> package in the suggested way did not solve an issue. I tried to narrow down
> the source of the problem and found that importing either xarray or
> nbodykit.lab:
>
> import nbodykit.lab
> import xarray as xr
>
> is the source of "AttributeError: module 'snappy' has no attribute
> 'compress'".
>
> The previous versions had no issues.
>
> Kind regards,
>
> Elimboto
>
> On Tue, Apr 6, 2021 at 12:42 AM Andrey Novoseltsev <[email protected]>
> wrote:
>
>> It seems that the snappy package is missing, and I request installation:
>>> pip3 install python-snappy (see the discussion here
>>> https://github.com/dask/fastparquet/issues/459)
>>>
>> Done!
>>
>>> Can I request whitelisting our forum URL: https://www.tssfl.com?
>>> Sometimes we upload files that can be read directly from it.
>>>
>> Done!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-cell" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-cell/729dd9ce-f4ba-4559-a95f-52f70b77ca4en%40googlegroups.com
>> <https://groups.google.com/d/msgid/sage-cell/729dd9ce-f4ba-4559-a95f-52f70b77ca4en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/CACEZTmsFs_zP0HvcFXx17OZ8c6LHJoykAMzGmJZAsU%3DTD6e8aw%40mail.gmail.com.

Reply via email to