jankais3r/pyPhotoDNA

Error with installation on Mac M1

cmurg opened this issue · 1 comments

cmurg commented

I'm trying to install pyPhotoDNA on a Macbook Pro with Apple M1 chip, MacOS Monterey version 12.6

I run these 3 commands:

git clone https://github.com/jankais3r/pyPhotoDNA.git
cd pyPhotoDNA
sh install.sh

install.sh script outputs this:

Welcome to the pyPhotoDNA installer.
The script will now setup a pyPhotoDNA environment for you. Please be patient.

Downloading Inspector (4.4 GB, might take a while)...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4757  100  4757    0     0   5861      0 --:--:-- --:--:-- --:--:--  5858

Extracting PhotoDNAx64.so.
Could not open product archive: Cellebrite_Inspector_10.3_Mac.pkg
mv: rename Inspector/Inspector.pkg/Payload/Applications/Inspector/Inspector 10.3/Inspector.app/Contents/Helpers/Mac/PhotoDNAx64-osx.so.1.72 to PhotoDNAx64.so: No such file or directory


Installation complete!
_____________________________

To generate a PhotoDNA hash, run: python3 generateHashes.py

Then run python script after changing filepath:
python3 generateHashes.py
Outputs this (the dlopen error is repeated for each image, removed the rest for brevity):

Generating hashes for all images under images/
Starting processing using 8 threads.
dlopen(*path*/pyPhotoDNA/PhotoDNAx64.so, 0x0006): tried: '*path*/pyPhotoDNA/PhotoDNAx64.so' (no such file)
Results saved into *path*/pyPhotoDNA/hashes.csv
Generated hashes for 29 images in 0 seconds.

And the hashes.csv file is empty.

Hi, this is because the required Inspector installation file has been removed by the hosting provider. For now the workaround is to either run this on Windows or Linux, or to modify the Linux part of install.sh to use wine on macOS as well.