GuidoBartoli / sherloq

An open-source digital image forensic toolset
GNU General Public License v3.0
2.63k stars 243 forks source link

run sherloq.py on windows10 get error #104

Open kawayixixing opened 2 weeks ago

kawayixixing commented 2 weeks ago

(.venv) C:\Program Files (x86)\sherloq\sherloq\gui>python sherloq.py Traceback (most recent call last): File "C:\Program Files (x86)\sherloq\sherloq\gui\sherloq.py", line 19, in from digest import DigestWidget File "C:\Program Files (x86)\sherloq\sherloq\gui\digest.py", line 5, in import magic File "C:\Program Files (x86)\sherloq\sherloq.venv\Lib\site-packages\magic__init__.py", line 209, in libmagic = loader.load_lib() ^^^^^^^^^^^^^^^^^ File "C:\Program Files (x86)\sherloq\sherloq.venv\Lib\site-packages\magic\loader.py", line 49, in load_lib raise ImportError('failed to find libmagic. Check your installation') ImportError: failed to find libmagic. Check your installation

i try install magic but also get error

UHstudent commented 4 days ago

if you use windows / windows powershell/command prompt, "python-magic==0.4.*" from the requirements file is incompatible

to solve this issue:

  1. unistall "python-magic==0.4.*" -> pip uninstall python-magic
  2. install "python-magic-bin==0.4.14" -> pip install python-magic-bin==0.4.14

note: if python-magic is installed when using windows powershell, sherloq will not run and throw an error because this library is prioritized. Make sure python-magic-bin is installed instead.

Does that work for you?