ftarlao / check-media-integrity

check-media-integrity is a command line tool that checks the integrity of specific media files (pictures, video, audio) or all the media files in subfolders, recursively.
GNU General Public License v3.0
157 stars 31 forks source link

Using Pillow-SIMD reports PILLOW_VERSION not found #9

Closed shivanraptor closed 3 years ago

shivanraptor commented 3 years ago

Hi, me again. I tried to replace Pillow with Pillow-SIMD in macOS 10.16 Catalina. Pillow has been removed and the Pillow-SIMD version I installed via pip3 is pillow-simd-7.0.0.post3. The output is as follow:

$ ./check_mi.py -l 2 ~/Desktop/error.jpg            
Traceback (most recent call last):
  File "/Users/adv/Downloads/check-media-integrity-master/./check_mi.py", line 451, in <module>
    main()
  File "/Users/adv/Downloads/check-media-integrity-master/./check_mi.py", line 358, in main
    if not is_pil_simd():
  File "/Users/adv/Downloads/check-media-integrity-master/./check_mi.py", line 289, in is_pil_simd
    return 'post' in PIL.PILLOW_VERSION
AttributeError: module 'PIL' has no attribute 'PILLOW_VERSION'
ftarlao commented 3 years ago

The instructions states that the script works with Pillow version <7, but I'm going to merge one push request that solves this issue in few days

ftarlao commented 3 years ago

Perhaps fixed, try

shivanraptor commented 3 years ago

Yes, it's fixed now, thanks.