Package Details: krop 0.7.0-1

Git Clone URL: https://aur.archlinux.org/krop.git (read-only, click to copy)
Package Base: krop
Description: A tool to crop PDF files, with an eye towards eReaders.
Upstream URL: http://arminstraub.com/computer/krop
Licenses: GPL-3.0-or-later
Submitter: archtux
Maintainer: Xavier
Last Packager: Xavier
Votes: 36
Popularity: 0.24
First Submitted: 2013-07-31 12:39 (UTC)
Last Updated: 2025-04-21 15:38 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Tio commented on 2018-11-26 12:53 (UTC)

Cannot install in Manjaro, I get this error: Missing dependencies: python-poppler-qt5 python-pypdf2

zoidberg commented on 2018-11-14 05:16 (UTC) (edited on 2018-11-14 05:49 (UTC) by zoidberg)

I still need to have python-sip installed to get krop to launch (I get the same error). For some reason, krop is not finding the sip provided by python-sip-pyqt5. To get it to use that, I need to change import sip to import PyQt5.sip as sip in line 5 of /usr/lib/python3.7/site-packages/krop/config.py

Edit: The following seems to be a better way to go about it:

import sys

PYQT5 = False
try:
    # use PyQt5 unless not available or specified otherwise
    if '--no-qt5' not in sys.argv:
        try:
            import PyQt5
            import PyQt5.sip as sip
            PYQT5 = True
        except ImportError:
            pass
    if not PYQT5:
        import PyQt4
        import sip
except ImportError:
    _msg = "Please install PyQt4 or PyQt5 first."
    raise RuntimeError(_msg)

...

Xavier commented on 2018-11-13 15:55 (UTC)

Fixed and updated, thanks zoidberg.

zoidberg commented on 2018-11-13 04:14 (UTC) (edited on 2018-11-13 04:15 (UTC) by zoidberg)

I needed to install the python-sip package too to get this to work. Without this package, krop would exit with the following error when launched from the terminal:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/krop/config.py", line 5, in <module>
    import sip
ModuleNotFoundError: No module named 'sip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/krop", line 17, in <module>
    from krop.application import main
  File "/usr/lib/python3.7/site-packages/krop/application.py", line 19, in <module>
    from krop.config import KDE
  File "/usr/lib/python3.7/site-packages/krop/config.py", line 17, in <module>
    raise RuntimeError(_msg)
RuntimeError: Please install PyQt4 or PyQt5 first.

Could you please add this package to the dependencies? I also had python-pyqt5 installed, but that alone was not enough.

Xavier commented on 2018-10-14 16:26 (UTC)

Hi Simonp, good changes thanks.

simonp commented on 2018-10-14 16:03 (UTC)

here is a new PKGBUILD which downloads the code directly from github: https://gist.github.com/simonpintarelli/9d12c3158e8e18634efed0f18c2ed604

Xavier commented on 2018-09-16 15:41 (UTC)

No, due to the python-pyqt5 warranted that.

houmain commented on 2018-09-16 08:25 (UTC)

I think python-sip should be added to the dependencies.

Xavier commented on 2017-08-28 02:42 (UTC)

Hi @rabarret, I checked the package in a clean chroot and all is right, is recommended before install/update it rebuild all aur dependencies.

rabarrett commented on 2017-08-12 17:51 (UTC) (edited on 2017-08-12 17:51 (UTC) by rabarrett)

AMAZING PROGRAM! Thank you! Something seems wrong with the AUR dependencies list. I couldn't get this to run at first, but then manually installed some of the listed dependencies and it started running. I think the key was manually installing pypdf, but I'm not certain because I was having similar issues with ocrmypdf not working right from the AUR and I was installing other programs to deal with that at the same time.