SHi-ON / libmagic-apple-silicon

Python libmagic on M1 or M2 (Mx) Macs
MIT License
11 stars 0 forks source link

magic.mgc Version Issue #1

Open amafflerbach opened 1 month ago

amafflerbach commented 1 month ago

Using libmagic 5.45, I had a version issue with the magic.mgc found in the repository folder.
To resolve my issue, I replaced the /libmagic-apple-silicon/magic/libmagic/magic.mgc file with /opt/homebrew/Cellar/libmagic/5.45/share/misc/magic.mgc. (The file that was provided by brew install lib magic)

.../my_project/venv/lib/python3.11/site-packages/magic/libmagic . ├── libmagic.dylib #copy of /opt/homebrew/Cellar/libmagic/5.45/lib/libmagic.1.dylib ├── magic.mgc #copy of /opt/homebrew/Cellar/libmagic/5.45/share/misc/magic.mgc └── magic.mgc.orig

zhaobozb commented 1 month ago

Thanks @amafflerbach very much for reporting this issue. It saved my day!