Skip to content
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

Requirements not installed: failed to find libmagic #5

Open
rancho666 opened this issue May 4, 2023 · 4 comments
Open

Requirements not installed: failed to find libmagic #5

rancho666 opened this issue May 4, 2023 · 4 comments

Comments

@rancho666
Copy link

I run the requirements.txt successfully but get the error message trying to run msidump.py:

[!] Requirements not installed: failed to find libmagic. Check your installation
Install them with:
cmd> pip install -r requirements.txt

So I install libmagic manually but still the error message persists when running msidump.py

Thanks in advance for any help on this!

@skm248
Copy link

skm248 commented Jun 19, 2023

I think the issue is with below
python-libmagic 0.4.0 depends on cffi==1.7.0

I was able to download cffi latest version separately without any issues. But when I try to run the below command still getting an issue
pip install python-libmagic

error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects

@i128
Copy link

i128 commented May 10, 2024

Long story short, use an older version of python3. Like 3.9

Ran into this same issue with 3.12. Got me to this post here:
python-cffi/cffi#48

Looks like its fixed in most recent release of cffi, but libmagic is hard locked on an older version of cffi. So until libmagic gets updated to use the most recent version of cffi, just use an older version of python

@mcopjan
Copy link

mcopjan commented Aug 21, 2024

What helped me was downgrading to python 3.9 and then running this
Yelp/elastalert#1927 (comment)

@Ba4ck
Copy link

Ba4ck commented Nov 15, 2024

I used python 3.11
It's helped me
Yelp/elastalert#1927 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants