Bug 715427 - [abrt] pdfshuffler-0.5-2.fc14: pdf.py:751:read:ValueError: too many values to unpack
Summary: [abrt] pdfshuffler-0.5-2.fc14: pdf.py:751:read:ValueError: too many values to...
Keywords:
Status: CLOSED DUPLICATE of bug 679067
Alias: None
Product: Fedora
Classification: Fedora
Component: pdfshuffler
Version: 14
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f0279f89
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-22 21:19 UTC by Larry O'Leary
Modified: 2011-06-24 20:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-24 20:04:17 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (848 bytes, text/plain)
2011-06-22 21:19 UTC, Larry O'Leary
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.