-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add M1 homebrew dylib dir #45
base: master
Are you sure you want to change the base?
Conversation
Hi @guillaumegenthial, i was trying to install the package based on your fix but it seems that the problem remains.
|
This works great, review this please! |
Does #42 solve this? Please try the 0.6.0 version. |
hi @homm, unfortunately, it's not solved by The issue remains. |
@panosangelopoulos Could you run in terminal:
|
UPDATE: Sorry, it gets resolved after I run (Old error log before running the brew install)
|
Tried ls /opt/homebrew/include/libheif/
heif.h heif_cxx.h heif_plugin.h heif_version.h I don't understand what's wrong. Anyone have any ideas? |
aha! My bad. The correct incantation for pip is:
I can confirm this PR works on m1 macs no problem. |
I found this workaround to install this patched version of
Tried with poetry but I assume the same thing can be done with other package managers. |
Could this PR be merged and a new version of the lib be released? It's quit annoying 🥲 |
Any help we can give on this issue? |
Yes, you can provide your
Yes, sure, the only issue "installing this version failed in other systems" |
for me $HOMEBREW_PREFIX seems unset. That doesn't seem like it could be what you asked for... |
You don't have homebrew properly installed in your system. The final step of installation should be adding Try this: $ eval "$(/opt/homebrew/bin/brew shellenv)"
$ pip install git+https://github.com/carsales/pyheif.git@master#egg=pyheif
Collecting pyheif
Building wheels for collected packages: pyheif
Building wheel for pyheif (setup.py) ... done
Created wheel for pyheif: filename=pyheif-0.7.1-cp39-cp39-macosx_10_9_universal2.whl
Successfully built pyheif
Installing collected packages: pyheif
Successfully installed pyheif-0.7.1
$ ipython
Python 3.9.6 (default, May 7 2023, 23:32:44)
In [1]: import pyheif
In [2]: pyheif.__version__
Out[2]: '0.7.1' |
Could anyone try to install from the following branch to solve this problem: $ pip install git+https://github.com/uploadcare/pyheif.git@read-transformations |
This seems to fix installation problems on M1 chips with libheif installed with M1 brew.
The dylib location has changed with the M1 native brew.
Procedure to install pyheif on M1 mac