diff --git a/kindlecomicconverter/shared.py b/kindlecomicconverter/shared.py index 507873b1..5c1136b0 100644 --- a/kindlecomicconverter/shared.py +++ b/kindlecomicconverter/shared.py @@ -117,7 +117,10 @@ def dependencyCheck(level): except ImportError: missing.append('psutil 5.0.0+') try: + from types import ModuleType from slugify import __version__ as slugifyVersion + if isinstance(slugifyVersion, ModuleType): + slugifyVersion = slugifyVersion.__version__ if StrictVersion('1.2.1') > StrictVersion(slugifyVersion): missing.append('python-slugify 1.2.1+') except ImportError: diff --git a/requirements.txt b/requirements.txt index 7a86437b..0574d241 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ PyQt5>=5.6.0 Pillow>=5.2.0 psutil>=5.0.0 -python-slugify>=1.2.1,<3.0.0 +python-slugify>=1.2.1,<8.0.0 raven>=6.0.0 # PyQt5-tools mozjpeg-lossless-optimization \ No newline at end of file diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 index a10d8ff9..343eb4a2 --- a/setup.py +++ b/setup.py @@ -94,7 +94,7 @@ def run(self): 'PyQt5>=5.6.0', 'Pillow>=5.2.0', 'psutil>=5.0.0', - 'python-slugify>=1.2.1,<3.0.0', + 'python-slugify>=1.2.1,<8.0.0', 'raven>=6.0.0', ], classifiers=[],