andrewning / sortphotos

SortPhotos is a Python script that organizes photos and videos into folders using date/time information
1.05k stars 310 forks source link

Can't locate Image/ExifTool/ISO.pm in @INC #133

Open mbaigorria opened 3 years ago

mbaigorria commented 3 years ago

When running on MacOS with Python 3.7.6, I get the following error:

git clone git@github.com:andrewning/sortphotos.git
cd sortphotos
python3 setup.py install
cd src
python3 sortphotos.py source_dir dest_dir -r -s --rename %Y-%m-%d-%H:%M
Can't locate Image/ExifTool/ISO.pm in @INC (you may need to install the Image::ExifTool::ISO module) (@INC contains: /Volumes/Elements/Files/sortphotos/src/Image-ExifTool/lib /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Volumes/Elements/Files/sortphotos/src/Image-ExifTool/lib/Image/ExifTool.pm line 2387.

Reverting the ExifTool directory to b847a326c3bc8fb2ef7e79edcc01a9e25fb3b15a fixes the problem, guess the update might've broken it.

taltman commented 3 years ago

Had the same issue on FreeBSD & Mac OS. Manually putting the PM from the following location into the lib/ directory fixed the issue for me:

https://metacpan.org/pod/Image::ExifTool::ISO

garymm commented 3 years ago

This seems to be fixed by https://github.com/andrewning/sortphotos/pull/123

hex0cter commented 2 years ago

This worked for me:

cd src/Image-ExifTool/lib/Image/ExifTool 
curl --output ISO.pm  https://fastapi.metacpan.org/source/EXIFTOOL/Image-ExifTool-12.42/lib/Image/ExifTool/ISO.pm
nicolas-raoul commented 1 year ago

I confirm that pull request #123 fixes the issue (git pull git@github.com:vulnerabivoro/sortphotos.git master then build normally python3 setup.py install).