Last commit to stapler-Repo was 4 years ago...
Search Criteria
Package Details: stapler 1.0.0-5
Package Actions
| Git Clone URL: | https://aur.archlinux.org/stapler.git (read-only, click to copy) |
|---|---|
| Package Base: | stapler |
| Description: | A small utility making use of the pypdf library to provide a (somewhat) lighter alternative to pdftk |
| Upstream URL: | https://github.com/hellerbarde/stapler |
| Licenses: | BSD-3-Clause |
| Conflicts: | stapler-git |
| Submitter: | biginoz |
| Maintainer: | fpvogel |
| Last Packager: | fpvogel |
| Votes: | 87 |
| Popularity: | 0.000000 |
| First Submitted: | 2010-08-26 17:32 (UTC) |
| Last Updated: | 2026-04-17 23:46 (UTC) |
Dependencies (4)
- python
- python-more-itertools
- python-pypdf2AUR
- python-pip (make)
Required by (0)
Sources (1)
oriba commented on 2026-05-04 19:33 (UTC)
oriba commented on 2026-05-04 19:19 (UTC) (edited on 2026-05-04 19:30 (UTC) by oriba)
The package can be built, but calling stapler results in:
Traceback (most recent call last):
File "/usr/lib/python3.14/site-packages/staplelib/commands.py", line 7, in <module>
from PyPDF2 import PdfFileWriter, PdfFileReader
ModuleNotFoundError: No module named 'PyPDF2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/stapler", line 6, in <module>
sys.exit(main())
~~~~^^
File "/usr/lib/python3.14/site-packages/staplelib/__init__.py", line 11, in main
from . import stapler
File "/usr/lib/python3.14/site-packages/staplelib/stapler.py", line 12, in <module>
from . import commands, CommandError
File "/usr/lib/python3.14/site-packages/staplelib/commands.py", line 9, in <module>
from pyPdf import PdfFileWriter, PdfFileReader
ModuleNotFoundError: No module named 'pyPdf'
pypdf2 itself can't be built.
Interestingly, one messages ays. PyPDF2 is missing, another one says, PyPdf is missing. Looks like a mess to me.
m040601 commented on 2021-07-20 15:39 (UTC) (edited on 2021-07-21 18:11 (UTC) by m040601)
This is a very usefull tool and apparently gets a lot of votes too. Thanks to everyone involved in providing these very usefull python pdf tools.
Stapler doesnt get many github commits (last one are from more than one year ago). And it can be a lot of trouble work to maintain the PKGBUILD due to the dependency on python-pypdf2.
Just want to chime in and suggest an alternative than may also be interesting to the same maintainers and users of this PKGBUILD.
-
It seems polished and provides the same stapling/stiching functionality.
-
also published on pypi
-
it dependes not on pypdf2, but pypd3
Pypdf3 seems better maintained. sfneal/PyPDF3: A utility to read and write PDFs with Python , which is also on pypi . https://pypi.org/project/PyPDF3/
Pypdf3 is already on AUR, https://aur.archlinux.org/packages/python-pypdf3
Pypdf2 last commits are from 2018.
I did a quick test and it seems to work as it says on the can:
It seems to work perfectly with:
pipx install pystitcher
or
python -m venv testing_pystitcher
cd ./testing_pystitcher
source bin/activate
pip install pypdf3
pip install pystitcher
PhCl commented on 2020-12-09 17:08 (UTC)
As python 3.8 was replaced by python 3.9, you could run into the following error:
Traceback (most recent call last):
File "/usr/bin/stapler", line 5, in <module>
from staplelib import main
ModuleNotFoundError: No module named 'staplelib'
To solve it, rebuild "python-pypdf2" and then "stapler". Then the directories for Python 3.9 should exist.
PhCl commented on 2020-08-27 11:33 (UTC)
@ganymede: Thanks, added makedepends "python-pip". @rcrath: Not sure how it can happen, but I changed it to "rm -f" for now, so it should ignore the error if "/usr/bin/pdf-stapler" does not exist.
rcrath commented on 2020-08-24 21:22 (UTC)
update fails with
Installing collected packages: stapler
Successfully installed stapler-1.0.0
rm: cannot remove '/run/media/rich/8TbSeagate/yay/stapler/pkg/stapler/usr/bin/pdf-stapler': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
error making: %!s(func() string=0x55b0858a3410)
ganymede commented on 2020-08-22 18:07 (UTC)
Thanks for the change. It introduces a dependency on pip, so please add 'python-pip' to makedepends (this package is only optional for python, therefore it's not necessarily installed).
PhCl commented on 2020-08-19 19:25 (UTC)
Alright, unless someone can bring up a good reason against it, I'll change it on the weekend.
Pinned Comments
PhCl commented on 2020-12-09 17:08 (UTC)
As python 3.8 was replaced by python 3.9, you could run into the following error:
To solve it, rebuild "python-pypdf2" and then "stapler". Then the directories for Python 3.9 should exist.