cloud-py-api / mediadc

Nextcloud Media Duplicate Collector application
https://apps.nextcloud.com/apps/mediadc
GNU Affero General Public License v3.0
95 stars 8 forks source link

`dhash` is not available. #85

Closed berti34 closed 2 years ago

berti34 commented 2 years ago

Hi,

I installed the App on my NC 25.0.1, Linux Debian 11, PHP-FPM 8.0.25, Python 3.9

I removed any python 2 software, but the error appears after a few seconds.

The error message "dhash is not available." appears in the MediaDC error. grafik

berti34 commented 2 years ago

python3 -m pip show dhash >> is showing:

Name: dhash Version: 1.4 Summary: Calculate difference hash (perceptual hash) for a given image, useful for detecting duplicates Home-page: https://github.com/benhoyt/dhash Author: Ben Hoyt Author-email: benhoyt@gmail.com License: MIT License Location: /usr/local/lib/python3.9/dist-packages Requires: Required-by:

bigcat88 commented 2 years ago

do you have installed numpy and pillow packages?

berti34 commented 2 years ago

Thank you! apt install python3-numpy/stable apt install python3-willow/stable This did the trick obviously!

bigcat88 commented 2 years ago

apt install python3-willow/stable

Just a note: this project use Pillow, not a Willow

berti34 commented 2 years ago

Yes, but I didn't find Pillow... and Willow seems to include Pillow

pip3 search pillow

ERROR: XMLRPC request failed [code: -32500] RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.

apt search python | grep -i Pillow

python3-pypillowfight/stable 0.3.0-4+b2 amd64 Python 3 bindings for libpillowfight Python image library combining Pillow, Wand and OpenCV (Python 3)