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 03-14-2015, 05:38 PM   #1
marie44
Member
marie44 began at the beginning.
 
marie44's Avatar
 
Posts: 17
Karma: 10
Join Date: Sep 2010
Device: Kobo Aura HD
Failed Conversion from AZW3 to EPUB

Hi all,

I'm hoping someone can look at the conversion error details below and give me some help. This a book I purchased off Amazon and imported into Calibre along with several other Amazon ebook purchases (I strip the DRM on import using the plugin from Apprentice Alf). This was the only one that gave me the conversion error.

I'm not good enough at interpreting the error details to determine if this a problem with conversion or a problem with removing the DRM; if it's a problem with the latter I know I need to direct my question over on Apprentice Alf's blog. However, I suspect it's a conversion issue since I can actually view the ebook in Calibre, which I can't do if the DRM hasn't been removed upon import.

Also, I don't recall changing any of the conversion settings in Calibre but I can't guarantee that I didn't tinker with a setting or two at some point.

Help, please and thank you!

Code:
calibre, version 2.21.0 (win32, isfrozen: True)
Conversion Error: Failed: Convert book 1 of 1 (The Ladies of Mandrigyn (The Sun Wolf and Starhawk Series))

Convert book 1 of 1 (The Ladies of Mandrigyn (The Sun Wolf and Starhawk Series))
DeDRM v6.1.0: In __init__
DeDRM v6.1.0: In load_resources
DeDRM v6.1.0: verdir C:\Users\Tinamarie\AppData\Roaming\calibre\plugins\DeDRM\6.1.0
DeDRM v6.1.0: In initialize
Resolved conversion options
calibre version: 2.21.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\TINAMA~1\\AppData\\Local\\Temp\\calibre_grqgun\\lcdhcf.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': 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 0x04CFF4F0>,
 '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_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.SonyReaderOutput object at 0x04D539F0>,
 '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'C:\\Users\\TINAMA~1\\AppData\\Local\\Temp\\calibre_grqgun\\ptf1eo.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,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\TINAMA~1\AppData\Local\Temp\calibre_grqgun\pun8zf.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Parsing all content...
Parsing text/part0019.html ...
Parsing text/part0000.html ...
Parsing text/part0001.html ...
Parsing text/part0015.html ...
Parsing text/part0003.html ...
Parsing text/part0014.html ...
Parsing text/part0028.html ...
Parsing text/part0005.html ...
Parsing text/part0026.html ...
Parsing text/part0002.html ...
Parsing text/part0020.html ...
Parsing text/part0025.html ...
Parsing text/part0021.html ...
Parsing text/part0012.html ...
Parsing text/part0023.html ...
Parsing text/part0007.html ...
Parsing text/part0024.html ...
Parsing text/part0006.html ...
Parsing text/part0010.html ...
Parsing text/part0018.html ...
Parsing text/part0009.html ...
Parsing text/part0022.html ...
Parsing styles/0001.css ...
Parsing styles/0002.css ...
Parsing text/part0027.html ...
Parsing text/part0017.html ...
Parsing text/part0011.html ...
Parsing text/part0004.html ...
Parsing text/part0008.html ...
Parsing text/part0016.html ...
Parsing text/part0013.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
	Detected chapter: Chapter 1
	Detected chapter: Chapter 2
	Detected chapter: Chapter 3
	Detected chapter: Chapter 4
	Detected chapter: Chapter 5
	Detected chapter: Chapter 6
	Detected chapter: Chapter 7
	Detected chapter: Chapter 8
	Detected chapter: Chapter 9
	Detected chapter: Chapter 10
	Detected chapter: Chapter 11
	Detected chapter: Chapter 12
	Detected chapter: Chapter 13
	Detected chapter: Chapter 14
	Detected chapter: Chapter 15
	Detected chapter: Chapter 16
	Detected chapter: Chapter 17
	Detected chapter: Chapter 18
	Detected chapter: Chapter 19
	Detected chapter: Chapter 20
	Detected chapter: Chapter 21
	Detected chapter: Chapter 22
Flattening CSS and remapping font sizes...
Python function terminated unexpectedly
  The pseudo-class :visted is not supported (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 193, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1155, in run
  File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py", line 185, in __call__
  File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py", line 264, in stylize_spine
  File "site-packages\calibre\ebooks\oeb\stylizer.py", line 220, in __init__
  File "site-packages\css_selectors\select.py", line 177, in __call__
  File "site-packages\css_selectors\select.py", line 195, in iterparsedselector
  File "site-packages\css_selectors\select.py", line 332, in select_combinedselector
  File "site-packages\css_selectors\select.py", line 337, in select_descendant
  File "site-packages\css_selectors\select.py", line 195, in iterparsedselector
  File "site-packages\css_selectors\select.py", line 553, in select_pseudo
css_selectors.errors.ExpressionError: The pseudo-class :visted is not supported
marie44 is offline   Reply With Quote
Old 03-14-2015, 07:28 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,276
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
You might want to open a bug on the calibre bug-tracker and attach the file being converted. I saw this in the release notes for 2.21
Quote:
Conversion: Use a new (written from scratch) implementation of CSS Level 3 selectors that fixes various bugs in handling of the more advanced/uncommon CSS selectors such as nth-last-child()
and it looks as if your issue is related to that.
PeterT is offline   Reply With Quote
Advert
Old 03-14-2015, 07:48 PM   #3
marie44
Member
marie44 began at the beginning.
 
marie44's Avatar
 
Posts: 17
Karma: 10
Join Date: Sep 2010
Device: Kobo Aura HD
Bug report submitted. Thanks for the feedback!
marie44 is offline   Reply With Quote
Old 03-24-2015, 08:30 PM   #4
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
I just encountered this in a book of my own.
Quote:
The pseudo-class :visted is not supported (Error Code: 1)
This is a typo in the css. Somewhere in the css you have something like
Quote:
.sans_white a:visted {...
That's supposed to be visited.
Section8 is offline   Reply With Quote
Old 03-24-2015, 08:57 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Yes, but the point is, the book shouldn't flat-out fail.

In the editor, this would be caught. Conversions shouldn't care.
eschwartz is offline   Reply With Quote
Advert
Old 03-24-2015, 10:01 PM   #6
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
Ah - actually, this happened to me in the calibre editor, using the "remove unused css" tool.
Section8 is offline   Reply With Quote
Old 03-24-2015, 10:14 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Hmm, interesting. Are you still on calibre 2.21.0? Because any which way you cut it, this was a regression that is fixed as of 2.22.0 .
eschwartz is offline   Reply With Quote
Old 03-24-2015, 10:36 PM   #8
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
I'm running 2.22. It's easy to reproduce - open a random epub in the editor, stick something like "a:vixited {}" in the css, run the "remove unused css" tool, and it fails:
Quote:
calibre, version 2.22.0
ERROR: Unhandled exception: <b>ExpressionError</b>:The pseudo-class :vixited is not supported

calibre 2.22 isfrozen: True is64bit: True
Linux-3.18.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.2 Linux ('64bit', 'ELF')
('Linux', '3.18.7-gentoo', '#1 SMP PREEMPT Fri Feb 27 13:44:17 CST 2015')
Python 2.7.9
Linux: ('Gentoo Base System', '2.2', '')
Successfully initialized third party plugins: DeDRM && EpubSplit && Open With && Quality Check && FictionDB && Find Duplicates && Overdrive Link && Count Pages && Webscription && KindleUnpack - The Plugin && XRay Generator && Fantastic Fiction && Goodreads && Barnes & Noble && Modify ePub && Extract ISBN
Traceback (most recent call last):
File "site-packages/calibre/gui2/tweak_book/boss.py", line 513, in polish
File "site-packages/calibre/ebooks/oeb/polish/main.py", line 247, in tweak_polish
File "site-packages/calibre/ebooks/oeb/polish/main.py", line 202, in polish_one
File "site-packages/calibre/ebooks/oeb/polish/css.py", line 95, in remove_unused_css
File "site-packages/calibre/ebooks/oeb/polish/css.py", line 23, in filter_used_rules
File "site-packages/css_selectors/select.py", line 184, in has_matches
File "site-packages/css_selectors/select.py", line 177, in __call__
File "site-packages/css_selectors/select.py", line 195, in iterparsedselector
File "site-packages/css_selectors/select.py", line 553, in select_pseudo
ExpressionError: The pseudo-class :vixited is not supported
Fix the typo to "visited" and it's fine.
Section8 is offline   Reply With Quote
Old 03-24-2015, 10:46 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I guess this bug isn't fully fixed?

Yep, the first error was in logging. Totally different.

Last edited by eschwartz; 03-24-2015 at 10:54 PM.
eschwartz is offline   Reply With Quote
Old 03-24-2015, 10:58 PM   #10
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
As a test, I tried an epub->azw3 conversion with one of these css typos and the css error was reported in the job log but the conversion was successful.

Quote:
Ignoring CSS rule with invalid selector: u'a:vxted' (The pseudo-class :vxted is not supported)
It appears that this is different occurrence of the same failure.
Section8 is offline   Reply With Quote
Old 03-24-2015, 10:59 PM   #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: 44,030
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...66bebce367764e
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
ePub > AZW3 failed with 0.9.34 JSWolf Conversion 3 06-11-2013 10:40 PM
Failed conversion of azw3 to mobi fishgirl182 Conversion 6 05-16-2013 01:08 PM
Failed conversion txt > ePub Contiw Conversion 1 05-07-2013 12:09 AM
Conversion from epub to azw3 Joy736 Conversion 12 01-01-2013 11:00 AM
Failed Conversion of epub to mobi Jimbo724 Conversion 1 07-17-2012 04:39 PM


All times are GMT -4. The time now is 03:11 PM.


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