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

run sherloq.py on windows10 get error #104

Open
kawayixixing opened this issue Sep 14, 2024 · 1 comment
Open

run sherloq.py on windows10 get error #104

kawayixixing opened this issue Sep 14, 2024 · 1 comment

Comments

@kawayixixing
Copy link

kawayixixing commented Sep 14, 2024

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

@kawayixixing kawayixixing changed the title when i install run sherloq.py on windows10 get error Sep 14, 2024
@UHstudent
Copy link
Contributor

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?

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

2 participants