1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

add pymupdf requirement

This commit is contained in:
Alex Xu
2025-07-20 21:57:08 -07:00
parent 8ab7520754
commit 380dc5c42c
2 changed files with 8 additions and 1 deletions

View File

@@ -120,6 +120,12 @@ def dependencyCheck(level):
missing.append('Pillow 11.3.0+')
except ImportError:
missing.append('Pillow 11.3.0+')
try:
from pymupdf import __version__ as pymupdfVersion
if Version('1.26.1') > Version(pymupdfVersion):
missing.append('PyMuPDF 1.26.1+')
except ImportError:
missing.append('PyMuPDF 1.26.1+')
if len(missing) > 0:
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
sys.exit(1)