Package Details: python-pdfnup 0.4.2-1

Git Clone URL: https://aur.archlinux.org/python-pdfnup.git (read-only, click to copy)
Package Base: python-pdfnup
Description: a Python module and CLI tool for layouting multiple pages per sheet of a PDF
Upstream URL: http://www.dinu-gherman.net/tmp/pdfnup-README.html
Licenses: GPL3
Submitter: keenerd
Maintainer: None
Last Packager: keenerd
Votes: 5
Popularity: 0.000000
First Submitted: 2016-03-27 14:15 (UTC)
Last Updated: 2016-03-27 14:38 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

lmat commented on 2024-09-12 22:32 (UTC)

I can reproduce the "missing PyPDF2.pdf" error as reported by oriba and TrailnError last year.

oriba commented on 2023-07-10 15:55 (UTC)

Same problem with missing PyPDF2.pdf as TrialnError reported here also:

  File "/usr/bin/pdfnup", line 23, in <module>
    from pdfnup import *
  File "/usr/lib/python3.11/site-packages/pdfnup.py", line 36, in <module>
    from PyPDF2.pdf import PageObject, ContentStream
ModuleNotFoundError: No module named 'PyPDF2.pdf'

TrialnError commented on 2023-06-28 17:28 (UTC)

The current python-pypdf2 does not work with this:

Traceback (most recent call last):
  File "/usr/bin/pdfnup", line 23, in <module>
    from pdfnup import *
  File "/usr/lib/python3.11/site-packages/pdfnup.py", line 36, in <module>
    from PyPDF2.pdf import PageObject, ContentStream
ModuleNotFoundError: No module named 'PyPDF2.pdf'

Additionally there seems to incompatibilities with the base64 module.

TrialnError commented on 2023-06-28 17:23 (UTC)

That is something you need to tell upstream, dreieck.
And as the last release was 2012 good luck with this endeavour ;).

dreieck commented on 2023-05-24 16:40 (UTC)

You need to switch away from using setup.py but instead use python-build and python-installer:

/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

Regards!

McGee commented on 2021-06-25 05:49 (UTC) (edited on 2021-06-25 05:50 (UTC) by McGee)

Adding an additional line

          -e 's/decodestring/b64decode/' \

to the sed-command in the PKGBUILD did the trick for me.

xafc commented on 2021-02-09 10:19 (UTC)

The problem is with pdfnup itself. A workaround is to change decodestring with decodebytes.

carlosal1015 commented on 2020-12-09 20:36 (UTC)

pdfnup is not working with python 3.9

Traceback (most recent call last):
  File "/usr/bin/pdfnup", line 23, in <module>
    from pdfnup import *
  File "/usr/lib/python3.9/site-packages/pdfnup.py", line 70, in <module>
    _mtA4Pdf = zlib.decompress(base64.decodestring(_mtA4PdfZip64.encode("ascii")))
AttributeError: module 'base64' has no attribute 'decodestring'

gpskarsten commented on 2018-03-17 20:42 (UTC)

this Package conflicts texlive-core which provides a diffrent /usr/bin/pdfnup https://www.archlinux.org/packages/extra/any/texlive-core/files/