Running iLEAPP on macOS, no module named 'magic' found #622
-
Hello, I was following the install instructions here (https://www.youtube.com/watch?v=fEYV5vVAdu4) and encountered an error when I tried installing the dependendencies from requirements.txt. For some reason it is unable to find magic & python magic. I have XCode installed however I am on a MacBook Pro Apple M2 Max Chip. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I'm not sure if applicable on Mac but I know this issue gets fixed after installed the Visual Studio items on Windows https://youtu.be/7qvVFfBM2NU?si=B93oHWTmLaVPHN2h&t=116 |
Beta Was this translation helpful? Give feedback.
-
I also had the same issue on a Mac Studio with an Apple M1 Max chip with a fresh install of Sonoma. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
I did a test in a VM with a fresh install of macOS Sonoma 14.1.1. and it worked.
I downloaded Python 3.11.6, opened a terminal and typed git --version to install Xcode Command Line tools, cloned the iLEAPP repo in my Documents folder and comment the 'python-magic-bin==0.4.14; platform_system == "Darwin"' line in the requirements.txt file.
In the terminal, I installed the dependencies (pip3 install -r requirements.txt) ant tried to launch ileappGUI.py but the libmagic module was not found.
I installed brew then the libmagic formula without any additional parameter (I.E: path)
After that, I was able to start iLEAPP in both GUI and CLI.
Verify that the libmagic formula is available with 'br…