Bug 601445 - [abrt] crash in calibre-0.6.42-1.fc13: split.py:87:write_pdf:TypeError: __init__() got an unexpected keyword argument 'title'
Summary: [abrt] crash in calibre-0.6.42-1.fc13: split.py:87:write_pdf:TypeError: __ini...
Keywords:
Status: CLOSED DUPLICATE of bug 653902
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:075d546a
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-08 01:34 UTC by Daniel Stripes
Modified: 2011-01-09 19:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-09 19:51:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.17 KB, text/plain)
2010-06-08 01:35 UTC, Daniel Stripes
no flags Details

Description Daniel Stripes 2010-06-08 01:34:59 UTC
abrt 1.1.1 detected a crash.

architecture: x86_64
cmdline: python /usr/bin/pdfmanipulate split -o X243W_UG_EN-testing-split_1.pdf X243W_UG_EN-testing.pdf 6 13
component: calibre
executable: /usr/bin/pdfmanipulate
kernel: 2.6.33.5-112.fc13.x86_64
package: calibre-0.6.42-1.fc13
reason: split.py:87:write_pdf:TypeError: __init__() got an unexpected keyword argument 'title'
release: Fedora release 13 (Goddard)

backtrace
-----
split.py:87:write_pdf:TypeError: __init__() got an unexpected keyword argument 'title'

Traceback (most recent call last):
  File "/usr/bin/pdfmanipulate", line 19, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/cli.py", line 61, in main
    return COMMANDS[command].main(args, command)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 199, in main
    split_pdf(pdf, pages, page_ranges, os.path.splitext(opts.output)[0], mi)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 74, in split_pdf
    write_pdf(pdf, out_name, '%s' % (index + 1), index, total_pages, metadata)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 87, in write_pdf
    out_pdf = PdfFileWriter(title=title, author=author)
TypeError: __init__() got an unexpected keyword argument 'title'

Local variables in innermost frame:
end: 20
suffix: '6'
title: u'G:\\workarea\\customer\\ACER-N~1\\X243W\\X243W-~1\\X243W-E_manual.pmd'
author: u'VickyMao'
name: u'X243W_UG_EN-testing-split_1'
start: 5
pdf: <pyPdf.pdf.PdfFileReader object at 0x1d7fd50>
metadata: <calibre.ebooks.metadata.MetaInformation object at 0x1d7f750>

Comment 1 Daniel Stripes 2010-06-08 01:35:00 UTC
Created attachment 421988 [details]
File: backtrace

Comment 2 Kevin Fenzi 2010-06-08 04:38:56 UTC
Can you please try the calibre and python-cssutils packages from: 

https://admin.fedoraproject.org/updates/calibre-0.6.55-1.fc13,python-cssutils-0.9.6-1.fc13

thanks.

Comment 3 Daniel Stripes 2010-07-18 03:11:38 UTC
(In reply to comment #2)
> Can you please try the calibre and python-cssutils packages from: 
> 
> https://admin.fedoraproject.org/updates/calibre-0.6.55-1.fc13,python-cssutils-0.9.6-1.fc13
> 
> thanks.    

Yes, and received the following result:

Package:    	calibre-0.6.42-1.fc13
Latest Crash:	Sat 17 Jul 2010 11:05:46 PM 
Command:    	python /usr/bin/pdfmanipulate split -o X243W_UG_EN-testing-split_1.pdf X243W_UG_EN-testing.pdf 6 13
Reason:     	split.py:87:write_pdf:TypeError: __init__() got an unexpected keyword argument 'title'
Comment:    	None
Bug Reports:	Status: NEW
		https://bugzilla.redhat.com/show_bug.cgi?id=601445

backtrace
-----
split.py:87:write_pdf:TypeError: __init__() got an unexpected keyword argument 'title'

Traceback (most recent call last):
  File "/usr/bin/pdfmanipulate", line 19, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/cli.py", line 61, in main
    return COMMANDS[command].main(args, command)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 199, in main
    split_pdf(pdf, pages, page_ranges, os.path.splitext(opts.output)[0], mi)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 74, in split_pdf
    write_pdf(pdf, out_name, '%s' % (index + 1), index, total_pages, metadata)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 87, in write_pdf
    out_pdf = PdfFileWriter(title=title, author=author)
TypeError: __init__() got an unexpected keyword argument 'title'

Local variables in innermost frame:
end: 20
suffix: '6'
title: u'G:\\workarea\\customer\\ACER-N~1\\X243W\\X243W-~1\\X243W-E_manual.pmd'
author: u'VickyMao'
name: u'X243W_UG_EN-testing-split_1'
start: 5
pdf: <pyPdf.pdf.PdfFileReader object at 0x1d7fd50>
metadata: <calibre.ebooks.metadata.MetaInformation object at 0x1d7f750>

Comment 4 Kevin Fenzi 2010-07-18 04:26:24 UTC
> Package:     calibre-0.6.42-1.fc13

This shows that you have not yet upgraded to the 0.6.55 version. 
Can you do a 'yum update' ?

Comment 5 Daniel Stripes 2010-07-19 10:20:45 UTC
(In reply to comment #4)
> > Package:     calibre-0.6.42-1.fc13
> 
> This shows that you have not yet upgraded to the 0.6.55 version. 
> Can you do a 'yum update' ?    

Interesting.  Before making comment 3, I did:

[dls@rigel ~]$ yum info calibre
Loaded plugins: auto-update-debuginfo, presto, refresh-packagekit
Found 61 installed debuginfo package(s)
Installed Packages
Name       : calibre
Arch       : x86_64
Version    : 0.6.55
Release    : 1.fc13
Size       : 31 M
Repo       : installed
From repo  : updates
Summary    : E-book converter and library management
URL        : http://calibre-ebook.com/
License    : GPLv3
{Description edited out}

and so, I did not check the version in the package info line of the report.  I humbly apologize for wasting your time with that.  I will attempt to correct this and then report back.  Thank you for your patience.

Comment 6 Daniel Stripes 2010-07-19 10:50:36 UTC
Package: calibre-0.6.55-1.fc13
Architecture: x86_64
OS Release: Fedora release 13 (Goddard)


Comment
-----
Okay, after 'yum remove calibre calibre-debuginfo', 'rm -rf /home/$myhomedir/.config/calibre/', 'rm -rf /var/lib/yum/yumdb/c/*-calibre-0.6.42-1.fc12-x86_64/', 'updatedb', 'locate calibre' to verify no trace remained anywhere on this system, 'yum install calibre calibre-debuginfo', deleting all calibre and pdfmanipulate entries in ABRT, and '[dls@rigel Acer]$ /usr/bin/pdfmanipulate split X243W_UG_EN-testing.pdf 6', I get the result indicated by this report.

Comment 7 Daniel Stripes 2010-07-19 10:55:26 UTC
Package:    	calibre-0.6.55-1.fc13
Latest Crash:	Mon 19 Jul 2010 06:40:48 AM 
Command:    	python /usr/bin/pdfmanipulate split X243W_UG_EN-testing.pdf 6 13
Reason:     	split.py:87:write_pdf:TypeError: __init__() got an unexpected keyword argument 'title'
Comment:    	Okay, after 'yum remove calibre calibre-debuginfo', 'rm -rf /home/$myhomedir/.config/calibre/', 'rm -rf /var/lib/yum/yumdb/c/*-calibre-0.6.42-1.fc12-x86_64/', 'updatedb', 'locate calibre' to verify no trace remained anywhere on this system, 'yum install calibre calibre-debuginfo', deleting all calibre and pdfmanipulate entries in ABRT, and '[dls@rigel Acer]$ /usr/bin/pdfmanipulate split X243W_UG_EN-testing.pdf 6', I get the result indicated by this report.

split.py:87:write_pdf:TypeError: __init__() got an unexpected keyword argument 'title'

Traceback (most recent call last):
  File "/usr/bin/pdfmanipulate", line 19, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/cli.py", line 61, in main
    return COMMANDS[command].main(args, command)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 199, in main
    split_pdf(pdf, pages, page_ranges, os.path.splitext(opts.output)[0], mi)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 74, in split_pdf
    write_pdf(pdf, out_name, '%s' % (index + 1), index, total_pages, metadata)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/manipulate/split.py", line 87, in write_pdf
    out_pdf = PdfFileWriter(title=title, author=author)
TypeError: __init__() got an unexpected keyword argument 'title'

Local variables in innermost frame:
end: 20
suffix: '6'
title: u'G:\\workarea\\customer\\ACER-N~1\\X243W\\X243W-~1\\X243W-E_manual.pmd'
author: u'VickyMao'
name: 'split'
start: 5
pdf: <pyPdf.pdf.PdfFileReader object at 0x382da90>
metadata: <calibre.ebooks.metadata.MetaInformation object at 0x382d610>

Comment 8 Kevin Fenzi 2011-01-09 19:22:11 UTC
Can you try the very latest version of calibre from my calibre repo? 

http://repos.fedoraproject.org/kevin/calibre/

And let me know if this presists with the newest version? 

Thanks.

Comment 9 Kevin Fenzi 2011-01-09 19:51:15 UTC

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


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