pdfarranger TypeError: only pages can be inserted; solved in versions 1.7.1/pikepdf 2.7.0

Bug #1926289 reported by Nizar Kerkeni
80
This bug affects 16 people
Affects Status Importance Assigned to Milestone
pdfarranger (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Can not save an edited PDF file with pdfarranger

Error message :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 748, in choose_export_pdf_name
    self.save(only_selected, file_out)
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 210, in wrapper
    func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 796, in save
    exporter.export(self.pdfqueue, to_export, file_out, m)
  File "/usr/lib/python3/dist-packages/pdfarranger/exporter.py", line 78, in export
    pdf_output.pages.append(new_page)
TypeError: only pages can be inserted

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: pdfarranger 1.6.2-1
ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12
Uname: Linux 5.11.0-16-generic x86_64
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 27 12:37:37 2021
InstallationDate: Installed on 2019-09-27 (577 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
PackageArchitecture: all
SourcePackage: pdfarranger
UpgradeStatus: Upgraded to hirsute on 2021-04-21 (6 days ago)

Revision history for this message
Nizar Kerkeni (nizarus) wrote :
Revision history for this message
Nizar Kerkeni (nizarus) wrote :

Workaround :
I installed pdfarranger from this ppa : ppa:linuxuprising/apps
And the updated version (1.7.1-0~hirsute0) works fine.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pdfarranger (Ubuntu):
status: New → Confirmed
Revision history for this message
Tim Richardson (tim-richardson) wrote :

The flathub version is fixed too.
Please see upstream bug report
https://github.com/pdfarranger/pdfarranger/issues/478
which is closed as fixed in new release.

Revision history for this message
Xavier Guillot (valeryan-24) wrote :

Hi, same problem since a few weeks :

https://github.com/pdfarranger/pdfarranger/issues?q=only+pages+can+be+inserted

"This was probably triggered by an update of qpdf. Ubuntu will need to update either Pikepdf or Pdf Arranger to fix this."

"1.7.1 includes a workaround"

Please packagers, update Pdf Arranger to version 1.7.1 before Ubuntu 21.10 release !

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pikepdf (Ubuntu):
status: New → Confirmed
Revision history for this message
Xavier Guillot (valeryan-24) wrote :
Revision history for this message
Xavier Guillot (valeryan-24) wrote :

Or please update pikepdf, bug was corrected in version 2.7.0 (we are at 2.16.1) :

https://github.com/pikepdf/pikepdf/blob/master/docs/release_notes.rst#v270

Revision history for this message
Xavier Guillot (valeryan-24) wrote :

Upgrade already asked in Debian 5 months ago :

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984830

This bug is critical as it makes the software totally unusable…

tags: added: upgrade-software-version
summary: - pdfarranger TypeError: only pages can be inserted
+ pdfarranger TypeError: only pages can be inserted; solved in version
+ 1.7.1
Changed in pdfarranger (Ubuntu):
importance: Undecided → Wishlist
Changed in pikepdf (Ubuntu):
importance: Undecided → Wishlist
summary: - pdfarranger TypeError: only pages can be inserted; solved in version
- 1.7.1
+ pdfarranger TypeError: only pages can be inserted; solved in versions
+ 1.7.1/pikepdf 2.7.0
Changed in pdfarranger (Ubuntu):
status: Confirmed → Triaged
Changed in pikepdf (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Marcos Nascimento (wstlmn) wrote :

Using ppa: ppa:linuxuprising/apps worked fine, however we have to set up for Ubuntu Hirsute. For Ubuntu Impish, we probably won't have it until after the official launch.

Jeremy Bícha (jbicha)
Changed in pdfarranger (Ubuntu):
importance: Wishlist → High
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pdfarranger - 1.6.2-3

---------------
pdfarranger (1.6.2-3) unstable; urgency=medium

  * Add patch to fix editing PDFs with old pikepdf version (LP: #1926289)

 -- Jeremy Bicha <email address hidden> Sun, 26 Sep 2021 21:21:43 -0400

Changed in pdfarranger (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Oibaf (oibaf) wrote :

See bug 1950911 for sync request of updated pikepdf.

no longer affects: pikepdf (Ubuntu)
Revision history for this message
mog (launchpad-net-mog) wrote :

Ubuntu Hirsute is still on 1.6.2-1 and has not received fixed 1.6.2-3

See https://packages.ubuntu.com/search?keywords=pdfarranger

Revision history for this message
mog (launchpad-net-mog) wrote :

Installing pdfarranger_1.6.2-3_all.deb from Impish works on Hirsute.

Revision history for this message
Oibaf (oibaf) wrote :

Hirsute is in End of Life since Janury 2022: https://lists.ubuntu.com/archives/ubuntu-announce/2022-January/000276.html and won't receive any new update.

You should upgrade to impish/jammy.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.