Skip to content

Numcodecs 0.7.0 fails with Zarr package #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yihming opened this issue Sep 10, 2020 · 6 comments
Closed

Numcodecs 0.7.0 fails with Zarr package #243

yihming opened this issue Sep 10, 2020 · 6 comments

Comments

@yihming
Copy link

yihming commented Sep 10, 2020

Minimal, reproducible code sample, a copy-pastable example if possible

from zarr import Blosc

Problem description

I installed numcodecs latest 0.7.0 version, but found that zarr did not work properly with it. Downgrading numcodecs to version 0.6.4 resolved this issue.

Moreover, I had to install a bunch of dependency head files in Ubuntu to make the installation of numcodecs v0.7.0 succeed (see below):

sudo apt install libblosc-dev libzstd-dev liblz4-dev
conda activate pegasus-python37
pip install zarr

Then the code sample above gives the following error message:

>>> from zarr import Blosc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Blosc' from 'zarr' (/opt/miniconda3/envs/pegasus-python37/lib/python3.7/site-packages/zarr/__init__.py)

Version and installation information

Please provide the following:

  • Value of numcodecs.__version__: 0.7.0
  • Version of Python interpreter: 3.7.9
  • Operating system (Linux/Windows/Mac): Ubuntu Linux 20.04
  • How NumCodecs was installed (e.g., "using pip into virtual environment", or "using conda"): In conda environment, use pip install numcodecs.

My zarr version is 2.4.0.

Also, if you think it might be relevant, please provide the output from pip list or
conda list depending on which was used to install NumCodecs.

@ronpandolfi
Copy link

Probably related to my issue. Seems like the 0.7.0 distros are missing some components (like blosc):
#242

@jakirkham
Copy link
Member

Duplicate of #242

@jakirkham jakirkham marked this as a duplicate of #242 Sep 10, 2020
@jakirkham
Copy link
Member

Closing to consolidate conversation. Please follow along in issue ( #242 ). Thanks!

@joshmoore
Copy link
Member

@yihming, I just pushed out 0.7.1 which appears to work in a fresh ubuntu:16.04 docker image:

    1  apt-get install libblosc-dev libzstd-dev liblz4-dev # Likely 
    2  apt-get update
    4  apt-get install python3
    9  apt-get install python3-venv
   10  python3 -m venv /tmp/z
   12  /tmp/z/bin/pip install -U pip
   14  /tmp/z/bin/pip install -U setuptools
   15  /tmp/z/bin/pip install zarr
   16  /tmp/z/bin/python -c "from zarr import Blosc"

@yihming
Copy link
Author

yihming commented Sep 10, 2020

Thank you so much for your quick response. I'll try it later and let you know.

@yihming
Copy link
Author

yihming commented Sep 12, 2020

Version 0.7.1 works properly with zarr now. Thank you again for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants