-
Notifications
You must be signed in to change notification settings - Fork 283
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
Persistent ImportError: failed to find libmagic #238
Comments
Seems like homebrew has changed to |
Thanks for the quick reply! Combining your answer and this article I found earlier, I've created a symlink here:
(I first tried only creating a symlink from Now I'm getting
any ideas? |
I'm guessing this is something. But no idea how to rectify...
|
To be honest, I just modified the python-magic to in my venv point to |
Figured it out. The problem was that, due to compatibility issues with python2 on the M1 macbooks, I've had to install python2 via anaconda, which uses x86_64 architecture. Then I installed libmagic via Homebrew with arm64 architecture. So the solution was:
|
FWIW, I think this is still an issue for 3.whatever apple m1 supports (3.9 in my case) |
this error is still affecting anyone installing on arm mac due to: Line 17 in 5fa9055
and:
I guess could be fixed just by adding extra default search paths another option could be to detect the platform and parse the actual cellar path from output of |
ignore me... the problem is actually my project is using older version of python-magic 🤦 |
I tried installing libmagic with both Homebrew and Macports (on a new Macbook Air M1 2020), but I'm unable to get it to work. What am I missing?
python-magic==0.4.22
The text was updated successfully, but these errors were encountered: