Skip to content
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

Latest version of numcodecs doesn't build #30

Closed
gtsambos opened this issue Dec 4, 2019 · 4 comments
Closed

Latest version of numcodecs doesn't build #30

gtsambos opened this issue Dec 4, 2019 · 4 comments

Comments

@gtsambos
Copy link
Member

gtsambos commented Dec 4, 2019

Hello, was running into issues installing tszip because of the numcodecs build failing. It seems to be a common issue. When I then manually installed an earlier version of numcodecs (0.6.2), everything worked fine. Perhaps worth a note in the Installation docs?

@gtsambos
Copy link
Member Author

gtsambos commented Dec 4, 2019

Ah, sadly, tsunzip installs but then doesn't actually work, this time because of some problem with blosc

6200D-132482-M:0.raw gtsambos$ tsunzip 1kg_chr21.trees.tsz 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/tsunzip", line 8, in <module>
    sys.exit(tsunzip_main())
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tszip/cli.py", line 170, in tsunzip_main
    main(args)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tszip/cli.py", line 153, in main
    run_decompress(args)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tszip/cli.py", line 139, in run_decompress
    ts = tszip.decompress(file_arg)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tszip/compression.py", line 113, in decompress
    return decompress_zarr(root)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tszip/compression.py", line 282, in decompress_zarr
    coordinates = root["coordinates"][:]
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zarr/hierarchy.py", line 326, in __getitem__
    synchronizer=self._synchronizer, cache_attrs=self.attrs.cache)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zarr/core.py", line 124, in __init__
    self._load_metadata()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zarr/core.py", line 141, in _load_metadata
    self._load_metadata_nosync()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zarr/core.py", line 169, in _load_metadata_nosync
    self._compressor = get_codec(config)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numcodecs/registry.py", line 36, in get_codec
    raise ValueError('codec not available: %r' % codec_id)
ValueError: codec not available: 'blosc'

@gtsambos
Copy link
Member Author

gtsambos commented Dec 4, 2019

It all worked when I installed everything with conda instead? 🤷‍♂

@jeromekelleher
Copy link
Member

This is a troublesome upstream issue @gtsambos (github.com/zarr-developers/numcodecs/issues/210), and there doesn't seem to be much we can do about it. Basically, numcodecs will install without errors even if some of the codecs fail to compile. Blosc seems to be a problem on OSX.

I think we probably will have to add a note to the installation docs, or else perhaps do a manual check at import time and raise a specific error telling the user to fix their numcodecs installation.

@jeromekelleher
Copy link
Member

Going to close this due to inactivity.

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

2 participants