bannsec / stegoVeritas

Yet another Stego Tool
GNU General Public License v2.0
349 stars 38 forks source link

stegoveritas_install_deps error on mac #33

Closed Maokus closed 1 year ago

Maokus commented 3 years ago

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
bannsec commented 3 years ago

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
fsilberstein commented 2 years ago

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
bannsec commented 2 years ago

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.

fsilberstein commented 2 years ago

Sure @bannsec the distro name is darwin

bannsec commented 2 years ago

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

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

fsilberstein commented 2 years ago

Sorry it was a mistake : brew install exiftool