abarker / pdfCropMargins

pdfCropMargins -- a program to crop the margins of PDF files
Other
349 stars 32 forks source link

how do I install on Alma Linux? #61

Open webservant316 opened 3 months ago

webservant316 commented 3 months ago

Running "pip3 install pdfCropMargins" and getting the error "No matching distribution found for pillow>=10.1.0"

abarker commented 1 month ago

I'm not really familiar with Alma Linux. It sounds like the distribution still wants to install an old version of pillow. The setup.py file is set to require >=10.1.0 because of some security issues, but the pdfCropMargins program itself only issues a warning.

If you can install an older version of pillow, then you could use pip with the --no-dependencies option for pdfCropMargins and install each dependency individually. (They dependencies are just wheel, pillow and pymupdf.)

webservant316 commented 1 month ago

Okay thanks.

In the meantime I found a solution with ghostscript.

From: Allen Barker @.> Sent: Friday, August 9, 2024 5:23 PM To: abarker/pdfCropMargins @.> Cc: Jeff Martin @.>; Author @.> Subject: Re: [abarker/pdfCropMargins] how do I install on Alma Linux? (Issue #61)

I'm not really familiar with Alma Linux. It sounds like the distribution still comes with an old version of pillow. The setup.py file is set to require >=10.1.0 because of some security issues, but the pdfCropMargins program itself only issues a warning.

If you can install an older version of pillow, then you could use pip with the --no-dependencies option and install each dependency individually. (They dependencies are just wheel, pillow and pymupdf.)

— Reply to this email directly, view it on GitHub https://github.com/abarker/pdfCropMargins/issues/61#issuecomment-2278773862 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AB74WYCDJ6HZ2MMHUAMGPN3ZQUXMPAVCNFSM6AAAAABJL5W2FGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZYG43TGOBWGI . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AB74WYECLBN6P22YTGVF4DTZQUXMPA5CNFSM6AAAAABJL5W2FGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUH2NKGM.gif Message ID: @. @.> >

-- This email has been checked for viruses by Avast antivirus software. www.avast.com