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

Pip install of imagecodecs 2020.12.22 fails on Mac #6

Closed
tomgoddard opened this issue Dec 23, 2020 · 10 comments
Closed

Pip install of imagecodecs 2020.12.22 fails on Mac #6

tomgoddard opened this issue Dec 23, 2020 · 10 comments

Comments

@tomgoddard
Copy link

On macOS 10.15.7 "pip3 install imagecodecs" tries to compile from source because there is no binary Mac PyPi wheel and then fails with

imagecodecs/_aec.c:617:10: fatal error: 'libaec.h' file not found
#include "libaec.h"
         ^~~~~~~~~~
1 warning and 1 error generated.
error: command 'clang' failed with exit status 1
@tomgoddard
Copy link
Author

Here is the full pip output.

pip_output.txt

@tomgoddard
Copy link
Author

Work-around is to use older imagecodecs which has a Mac binary wheel.

pip3 install imagecodecs==2020.5.30

@cgohlke
Copy link
Owner

cgohlke commented Dec 23, 2020

Mac, Linux, and conda-forge binaries are expected to lag in features and release date. They are built at https://github.com/Czaki/imagecodecs_build and https://github.com/conda-forge/imagecodecs-feedstock

@Czaki
Copy link

Czaki commented Dec 23, 2020

@cgohlke If you do not publish the source on PyPI then pip will automatically use the older release of imagecodecs. Maybe a delay in publishing the source on PyPI will be a good idea?

@tomgoddard
Copy link
Author

Thanks for the info about the builds. I use tifffile in ChimeraX and I thought in the past imagecodecs was an optional dependency. At some point I guess it became a required dependency since now the pip install of tifffile (2020.9.3) pulls in imagecodecs. In our nightly builds of ChimeraX visualization software the fact that tifffile pulled in imagecodecs and I had not specified a version for imagecodecs caused our Mac nightly build to fail when yesterday's imagecodecs update was released on PyPi. Now that I know tifffile requires imagecodecs I have specified the version of imagecodecs I want (2020.5.30) and all is working.

@Czaki
Copy link

Czaki commented Dec 23, 2020

After every upgrade list of libraries, macos wheel needs much more work than Linux one.

@cgohlke
Copy link
Owner

cgohlke commented Dec 24, 2020

Fixed in v2020.12.24. Thanks @Czaki

@cgohlke cgohlke closed this as completed Dec 24, 2020
@toloudis
Copy link

fyi, we are seeing this issue again today with the 2021.5.20 release

@normanius
Copy link

I get this error again when installing version 2023.3.16.

My system:

  • macOS Monterey (12.6.1)
  • MacBook Pro (14-inch, 2021)
  • Python 3.10.5

The command used:

python -m pip install imagecodecs

The entire console output:
console.txt

Any ideas?

@cgohlke
Copy link
Owner

cgohlke commented Mar 27, 2023

The entire console output:
creating build/lib.macosx-12.4-arm64-3.10

There are no binary wheels for macosx-arm64 because I don't have access to such hardware. See also #44.

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

5 participants