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
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