Bug 679570

Summary: [abrt] calibre-0.7.38-3.fc14: pdftohtml.py:76:pdftohtml:DRMError
Product: [Fedora] Fedora Reporter: Jim Shipman <JimShip>
Component: calibreAssignee: Kevin Fenzi <kevin>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: chkr, frankly3d, kevin, mbacovsk, nushio
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:728c3444
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-22 21:48:59 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 Jim Shipman 2011-02-22 21:33:22 UTC
abrt version: 1.1.17
architecture: x86_64
cmdline: python /usr/bin/calibre-parallel
component: calibre
executable: /usr/bin/calibre-parallel
kernel: 2.6.35.11-83.fc14.x86_64
package: calibre-0.7.38-3.fc14
reason: pdftohtml.py:76:pdftohtml:DRMError
release: Fedora release 14 (Laughlin)
time: 1298401987
uid: 500

backtrace
-----
pdftohtml.py:76:pdftohtml:DRMError

Traceback (most recent call last):
  File "/usr/bin/calibre-parallel", line 19, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/utils/ipc/worker.py", line 106, in main
    result = func(*args, **kwargs)
  File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert
    plumber.run()
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 853, in run
    accelerators, tdir)
  File "/usr/lib64/calibre/calibre/customize/conversion.py", line 216, in __call__
    log, accelerators)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/input.py", line 50, in convert
    pdftohtml(os.getcwd(), stream.name, options.no_images)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/pdftohtml.py", line 76, in pdftohtml
    raise DRMError()
DRMError

Local variables in innermost frame:
index: '/tmp/calibre_0.7.38_tmp_vvQ0b1/calibre_0.7.38_Z7aRT7_plumber/index.html'
pdf_path: '/home/shipman/Calibre Library/Unknown/Your Inner Fish (2)/Your Inner Fish - Unknown.pdf'
no_images: False
cmd: ['pdftohtml', '-enc', 'UTF-8', '-noframes', '-p', '-nomerge', '-nodrm', '-q', '/home/shipman/Calibre Library/Unknown/Your Inner Fish (2)/Your Inner Fish - Unknown.pdf', 'index.html']
ret: 0
logf: <calibre.ptempfile.PersistentTemporaryFile object at 0x3a9d510>
p: <subprocess.Popen object at 0x3a9d4d0>
output_dir: '/tmp/calibre_0.7.38_tmp_vvQ0b1/calibre_0.7.38_Z7aRT7_plumber'
out: ''

How to reproduce
-----
1. Don't know what caused the crash.
2. System was idle.
3.

Comment 1 Jim Shipman 2011-02-22 21:33:24 UTC
Created attachment 480256 [details]
File: backtrace

Comment 2 Kevin Fenzi 2011-02-22 21:48:59 UTC
Looks like you were trying to read/convert a pdf that was DRMed. 
Calibre cannot decrypt DRM encoded files. 

See: http://bugs.calibre-ebook.com/wiki/DRM

If you can decrypt the file, calibre should be able to read it fine.