elisemercury / Duplicate-Image-Finder

difPy - Python package for finding duplicate or similar images within folders
https://difpy.readthedocs.io
MIT License
449 stars 66 forks source link

Local variable 'imgs_matrix' referenced before assignment #7

Closed Tesax123 closed 2 years ago

Tesax123 commented 2 years ago

Hello,

I get this error while trying to run this simple line from your package (the import works). Some help would be very welcome.

UnboundLocalError: local variable 'imgs_matrix' referenced before assignment

image

Tesax123 commented 2 years ago

Update: I found out what was the issue. My url referenced to a directory that contained directories with images. So images were one level deeper. I still think a proper error message could have been supplied.
Or support for searching multiple levels deep inside a directory.

elisemercury commented 2 years ago

Hello Tesax123, This issue has been addressed in the new version v2.0 of the difPy. Thanks a lot for your input!