stegoVeritas icon indicating copy to clipboard operation
stegoVeritas copied to clipboard

stegoveritas_install_deps error on mac

Open Maokus opened this issue 4 years ago • 6 comments

stegovaritas was downloaded using pip3 install stegoveritas

user@Com - 901 Downloads %  stegoveritas_install_deps 
Traceback (most recent call last):
  File "/Users/user/anaconda3/bin/stegoveritas_install_deps", line 5, in <module>
    from stegoveritas.install_deps import main
  File "/Users/user/anaconda3/lib/python3.8/site-packages/stegoveritas/__init__.py", line 2, in <module>
    from .stegoveritas import StegoVeritas
  File "/Users/user/anaconda3/lib/python3.8/site-packages/stegoveritas/stegoveritas.py", line 15, in <module>
    import magic
  File "/Users/user/anaconda3/lib/python3.8/site-packages/magic.py", line 201, in <module>
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

Maokus avatar Dec 06 '20 02:12 Maokus

Unfortunately i don't have a mac to test against. python magic notes the following for mac


    When using Homebrew: brew install libmagic
    When using macports: port install file

bannsec avatar Dec 06 '20 16:12 bannsec

This is the list of commands I had to execute to make it work on mac (fully)

brew install libmagic
pip3 install exiftool
brew install p7zip
brew install foremost
brew install exempi
pip3 install stegoveritas

fsilberstein avatar Oct 27 '21 16:10 fsilberstein

Thanks @fsilberstein ! Could you run this on your mac and let me know what it says:

import distro
distro.name().lower()

Would like to try to hook in that mac install process.

bannsec avatar Oct 28 '21 14:10 bannsec

Sure @bannsec the distro name is darwin

fsilberstein avatar Oct 28 '21 14:10 fsilberstein

Where are you finding python exiftool lib? I'm not seeing it here:

https://pypi.org/project/exiftool/

bannsec avatar Oct 28 '21 16:10 bannsec

Sorry it was a mistake : brew install exiftool

fsilberstein avatar Oct 28 '21 17:10 fsilberstein