From 6e34643fd31ac57bfccc599047da9ca202f119eb Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 12 Mar 2023 11:18:14 -0400 Subject: [PATCH] Conditional upgrade of future to v0.18.3 and tabulate to v0.9.0 iff python version is > v3.10. This fixes the error 'ImportError: cannot import name Iterable from collections in Python' on Python 3.10 and higher. --- Readme.md | 3 +++ requirements.txt | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index a9589a7..706ae48 100644 --- a/Readme.md +++ b/Readme.md @@ -25,6 +25,9 @@ apt-get install libimage-exiftool-perl # Fedora / Redhat dnf install perl-Image-ExifTool +# Windows (uses chocolatey, https://chocolatey.org/) +choco install exiftool + # Windows users can install the binary # http://www.sno.phy.queensu.ca/~phil/exiftool/install.html ``` diff --git a/requirements.txt b/requirements.txt index 30d0e38..8ef7f58 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,11 @@ click==6.6 requests==2.20.0 Send2Trash==1.3.0 -future==0.16.0 +future==0.16.0; python_version < '3.10' +future==0.18.3; python_version >= '3.10' configparser==3.5.0 -tabulate==0.7.7 +tabulate==0.7.7; python_version < '3.10' +tabulate==0.9.0; python_version >= '3.10' Pillow==6.2.2; python_version == '2.7' Pillow==9.3; python_version >= '3.6' six==1.9