Bug 715427

Summary: [abrt] pdfshuffler-0.5-2.fc14: pdf.py:751:read:ValueError: too many values to unpack
Product: [Fedora] Fedora Reporter: Larry O'Leary <larryoleary>
Component: pdfshufflerAssignee: Fabian Affolter <mail>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:f0279f89
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-24 20:04:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description Larry O'Leary 2011-06-22 21:19:50 UTC
abrt version: 1.1.18
architecture: i686
cmdline: /usr/bin/python /usr/bin/pdfshuffler
comment: This seems to be a long running issue that is fixed and then breaks and then is fixed and then breaks. I believe the issue has to do with non-standard page sizes. It seems something is expecting all pages to be exactly the same size and be a standard paper size. As these are PDF(s), size is driven by the content of the document. There is no need to expect all pages to be the same size nor the inability to use non-standard page sizes.
component: pdfshuffler
executable: /usr/bin/pdfshuffler
kernel: 2.6.35.13-92.fc14.i686.PAE
package: pdfshuffler-0.5-2.fc14
reason: pdf.py:751:read:ValueError: too many values to unpack
release: Fedora release 14 (Laughlin)
time: 1308776555
uid: 1500

backtrace
-----
pdf.py:751:read:ValueError: too many values to unpack

Traceback (most recent call last):
  File "/usr/bin/pdfshuffler", line 411, in choose_export_pdf_name
    self.export_to_file(file_out)
  File "/usr/bin/pdfshuffler", line 432, in export_to_file
    pdfdoc_inp = PdfFileReader(file(pdfdoc.copyname, 'rb'))
  File "/usr/lib/python2.7/site-packages/pyPdf/pdf.py", line 374, in __init__
    self.read(stream)
  File "/usr/lib/python2.7/site-packages/pyPdf/pdf.py", line 751, in read
    offset, generation = line[:16].split(" ")
ValueError: too many values to unpack

Local variables in innermost frame:
cnt: 0
stream: <open file '/tmp/tmpOy9eZEpdfshuffler/02_Quest_20110504_Invoice.pdf', mode 'rb' at 0x93e7860>
self: <pyPdf.pdf.PdfFileReader object at 0x95dcc4c>
startxref: 68562
num: 1
x: 'x'
line: '0000000009 0000 n\n00'
ref: 'ref\n'
size: 6

How to reproduce
-----
1. Add a two page PDF
2. Add a one page PDF
3. Export PDF

Comment 1 Larry O'Leary 2011-06-22 21:19:53 UTC
Created attachment 506084 [details]
File: backtrace

Comment 2 Fabian Affolter 2011-06-24 20:04:17 UTC

*** This bug has been marked as a duplicate of bug 679067 ***