Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2018, 06:05 PM   #1
koyahinipo@hurif
Junior Member
koyahinipo@hurif began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2018
Device: kindle
AttributeError: 'NoneType' object has no attribute 'data'

I get this error converting a epub file to pdf:

AttributeError: 'NoneType' object has no attribute 'data'

Is there a config option to fix this?
koyahinipo@hurif is offline   Reply With Quote
Old 08-09-2018, 06:53 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 4,827
Karma: 21644938
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by koyahinipo@hurif View Post
I get this error converting a epub file to pdf:

AttributeError: 'NoneType' object has no attribute 'data'

Is there a config option to fix this?
Last time I saw this was using a calibre plugin that did not like empty dc: tags. You might want to use the Modify Epub plugin to update the metadata on the epub and try converting it again. If you look at the contents of the OPF file, you might see a lines that looks like:

Code:
<dc:creator></dc:creator>
<dc:title></dc:title>
instead of

Code:
<dc:creator opf:role="aut" opf:file-as="Pseudonym, Ima">Ima Pseudonym</dc:creator>
<dc:title>Dummy Ebook Title</dc:title>
And then we have the fun where epub2 and epub3 differ on how the metadata is defined.
DNSB is offline   Reply With Quote
Old 08-09-2018, 10:01 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,219
Karma: 10205092
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolved: Calibre 3.3 AttributeError: 'NoneType' object has no attribute DoctorOhh Library Management 13 07-09-2017 02:30 PM
Please help - AttributeError: 'NoneType' object has no attribute 'lower' Sazzaroo Calibre 9 12-11-2015 10:22 AM
AttributeError: 'NoneType' object has no attribute 'split' Thalia Helikon Conversion 1 12-30-2012 08:09 AM
AttributeError: 'NoneType' object has no attribute 'replace' when trying to add books tilleydog Calibre 16 10-04-2010 04:29 AM
AttributeError: 'NoneType' object has no attribute 'lower manada Calibre 2 08-10-2010 10:54 PM


All times are GMT -4. The time now is 05:29 PM.


MobileRead.com is a privately owned, operated and funded community.