Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2017, 06:42 AM   #1
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
Conversion Error to ePub

Hi,
Please help, I don't understand what happened and don't search where to find this error :
Spoiler:

Conversion du livre 1 sur 1 (L'Agenda Pop Rock 1968)
Processing archive...
Conversion options changed from defaults:
read_metadata_from_opf: u'/var/folders/k9/42lg4_8n0pzcyvxrs1n44q040000gn/C/calibre_3.12.0_tmp_G3gFPF/nZRvam.opf'
verbose: 2
output_profile: 'ipad3'
cover: u'/var/folders/k9/42lg4_8n0pzcyvxrs1n44q040000gn/C/calibre_3.12.0_tmp_G3gFPF/EoSLZ6.jpeg'
Resolved conversion options
calibre version: 3.12.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/folders/k9/42lg4_8n0pzcyvxrs1n44q040000gn/C/calibre_3.12.0_tmp_G3gFPF/EoSLZ6.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_package': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x1120e4150>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_levels': 5,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.iPad3Output object at 0x1120e4710>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/k9/42lg4_8n0pzcyvxrs1n44q040000gn/C/calibre_3.12.0_tmp_G3gFPF/nZRvam.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
Python function terminated unexpectedly: 'NoneType' object has no attribute 'tag'
InputFormatPlugin: HTML Input running
on /var/folders/k9/42lg4_8n0pzcyvxrs1n44q040000gn/C/calibre_3.12.0_tmp_G3gFPF/hTCwYH_pl_arc/__MACOSX/OEBPS/._content.opf
Parsing all content...
OPF contains invalid markup, trying to parse it anyway
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 154, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/utils/ipc/worker.py", line 195, in main
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 33, in gui_convert_override
File "site-packages/calibre/gui2/convert/gui_conversion.py", line 26, in gui_convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1088, in run
File "site-packages/calibre/customize/conversion.py", line 245, in __call__
File "site-packages/calibre/ebooks/conversion/plugins/html_input.py", line 87, in convert
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1292, in create_oebbook
File "site-packages/calibre/ebooks/oeb/reader.py", line 71, in __call__
File "site-packages/calibre/ebooks/oeb/reader.py", line 130, in _read_opf
AttributeError: 'NoneType' object has no attribute 'tag'

I've the latest version of Calibre and it's not the first version of this eBook.
Dominic

Last edited by theducks; 11-23-2017 at 10:50 AM. Reason: wrap long paste in spoiler
Dune54 is offline   Reply With Quote
Old 11-23-2017, 06:49 AM   #2
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: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error indicates the OPF file inside the EPUB is corrupted/invalid.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-24-2017, 04:53 AM   #3
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
Hi,
I'm not sure of that...
I test others ebook with no change and i obtain the same error : something is new with the new version 3.12 ?
Dune54 is offline   Reply With Quote
Old 11-24-2017, 05:21 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
__MACOSX/OEBPS/._content.opf

get rid of that.
JSWolf is offline   Reply With Quote
Old 11-27-2017, 04:57 AM   #5
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
Quote:
Originally Posted by JSWolf View Post
__MACOSX/OEBPS/._content.opf
get rid of that.
And after ?
Why the same error with all the old eBook with no change ?
With a new content.opf : same error !
Dune54 is offline   Reply With Quote
Advert
Old 11-27-2017, 05:25 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Dune54 View Post
And after ?
Why the same error with all the old eBook with no change ?
With a new content.opf : same error !
How did you create that new content.opf?

'corrupt' can be damaged or it can just be syntactically (a typo?) wrong.
theducks is offline   Reply With Quote
Old 11-28-2017, 03:47 AM   #7
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
Nevermind how i create the new "content.opf", this file was OK and the eBook is well validated. I need some little modifications.
The errors are since the new version (3.12).
I've several eBook already in the calibre library : without any change, if i try to convert these eBooks, i've obtained the same error.
But, for these eBooks, i erase the file ePub and launches a new conversion is OK.
Something is wrong with the new version of calibre : a bug, a bad install (done twice), what else...
Dune54 is offline   Reply With Quote
Old 11-28-2017, 05:18 AM   #8
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
The error was "OPF contains invalid markup" Kovid stated "That error indicates the OPF file inside the EPUB is corrupted/invalid." This means it was either corrupted or the markup was simply invalid.

Quote:
Python function terminated unexpectedly: 'NoneType' object has no attribute 'tag'
InputFormatPlugin: HTML Input running
on /var/folders/k9/42lg4_8n0pzcyvxrs1n44q040000gn/C/calibre_3.12.0_tmp_G3gFPF/hTCwYH_pl_arc/__MACOSX/OEBPS/._content.opf
Parsing all content...
OPF contains invalid markup, trying to parse it anyway
If it is your contention that there is a bug and you have multiple books affected simply file a bug report as described here. Attach a book that exhibits the error to the report (then mark the report private.) This will allow Kovid to have a closer look.
DoctorOhh is offline   Reply With Quote
Old 11-29-2017, 03:50 AM   #9
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
Hi Kovid,
How you sure that the new version (3.12) is ok with Mac OS 10.13.1 (High Sierra) ?
"/var/folders/k9/42lg4_8n0pzcyvxrs1n44q040000gn/C/calibre_3.12.0_tmp_G3gFPF/hTCwYH_pl_arc/__MACOSX/OEBPS/._content.opf
Parsing all content...
OPF contains invalid markup, trying to parse it anyway"

I've nothing like : __MACOSX/OEBPS/._content.opf
In this case, perhaps normal that : OPF contains invalid markup, trying to parse it anyway
I'm with "High Sierra" a few days before Calibre 3.12.
Dune54 is offline   Reply With Quote
Old 11-29-2017, 04:18 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Have you installed the epubcheck plugin for the Calibre editor and actually tried validating your ePub?
JSWolf is offline   Reply With Quote
Old 11-29-2017, 06:58 AM   #11
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: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Dune54 View Post
Hi Kovid,
How you sure that the new version (3.12) is ok with Mac OS 10.13.1 (High Sierra) ?
I have magic powers. You have edited your EPUB files with some tool (such as a zip/unzip program) that adds Mac OS'es stupid hidden folders into the file. That is causing your issues. Use the unpack book tool in calibre to unpack the book, delete the __MACOSX folder and repack it and you will be fine.

Or you can keep on complaining that calibre 3.12 is broken and you will get nowhere.
kovidgoyal is offline   Reply With Quote
Old 11-29-2017, 07:02 AM   #12
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
I obtain the same errors with Calibre 3.10 for old eBooks already validated and on sale.
Without file .opf on /var/folders/K9/... etc
see capture joined.
Attached Thumbnails
Click image for larger version

Name:	Calibre.png
Views:	184
Size:	33.8 KB
ID:	160288  
Dune54 is offline   Reply With Quote
Old 11-29-2017, 09:25 AM   #13
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Dune54 View Post
I obtain the same errors with Calibre 3.10 for old eBooks already validated and on sale.
Without file .opf on /var/folders/K9/... etc
see capture joined.
Did you use calibre's unpack tool as suggested?
DoctorOhh is offline   Reply With Quote
Old 12-01-2017, 04:32 AM   #14
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
Hi Kovid,
It seems better : no error...
I'll check the ebook completely.
Thanks
Dune54 is offline   Reply With Quote
Old 12-02-2017, 04:32 AM   #15
Dune54
Junior Member
Dune54 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: ePub
Hi Kovid,
it's fine without using zip program.
But i don't find in French "unpack book tool".
I try using "Ajouter des livres" & "Ajouter des livres à partir de répertoires, un livre par répertoire..." : it's ok for an old & the new eBook (validation is OK).
Thanks for your help.
Dune54 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in epub conversion ophelia89 Conversion 1 06-06-2017 02:33 PM
EPUB Validation error after DOC>EPUB conversion djkmann Conversion 5 11-29-2016 09:42 AM
Epub to Mobi Conversion error RobDaBat Conversion 2 02-15-2012 11:02 PM
RTF -> EPUB conversion error gondwild Calibre 3 01-16-2011 11:35 AM
epub conversion error booksonthemove Calibre 3 02-15-2010 10:21 PM


All times are GMT -4. The time now is 01:00 PM.


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