[Python-apps-team] Bug#976591: pdfarranger: PDF file will not be displayed in preview correctly and save of altered PDF not possible

Erik Schanze schanzi_ at gmx.de
Sat Dec 5 14:27:56 GMT 2020


Package: pdfarranger
Version: 1.1.1-1
Severity: normal

Dear Maintainer,

I opened the PDF (attached) and got no preview of pages.

On console I found messages like:
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
'could not find foreign type Context'

After deleting first page I try to save the remaining in differen file, but failed.
On console I found messages like:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 547, in choose_export_pdf_name
    self.save(only_selected, file_out)
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 579, in save
    self.export_to_file(file_out, only_selected)
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 603, in export_to_file
    'File export failed.') % pdfdoc.filename
TypeError: not all arguments converted during string formatting

During handling of the above exception, another exception occurred:

TypeError: Couldn't find foreign struct converter for 'cairo.Context'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 547, in choose_export_pdf_name
    self.save(only_selected, file_out)
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 579, in save
    self.export_to_file(file_out, only_selected)
  File "/usr/lib/python3/dist-packages/pdfarranger/pdfarranger.py", line 603, in export_to_file
    'File export failed.') % pdfdoc.filename
TypeError: not all arguments converted during string formatting

During handling of the above exception, another exception occurred:

TypeError: Couldn't find foreign struct converter for 'cairo.Context'

Could you please fix this or give a hint how I could solve it here?


Best regards,
Erik


-- System Information:
Debian Release: 10.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-12-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pdfarranger depends on:
ii  gir1.2-glib-2.0      1.58.3-2
ii  gir1.2-gtk-3.0       3.24.5-1
ii  gir1.2-poppler-0.18  0.71.0-5
ii  python3              3.7.3-1
ii  python3-cairo        1.16.2-1+b1
ii  python3-gi           3.30.4-1
ii  python3-pypdf2       1.26.0-2

pdfarranger recommends no packages.

pdfarranger suggests no packages.

-- no debconf information



More information about the Python-apps-team mailing list