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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-02-2010, 10:08 PM   #1
silinthar
Junior Member
silinthar began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2010
Device: ereader on BB Storm
PDB output conversion error

Trying to convert from any other format to PDB and i get the following error message:

ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Streams of Silver)

Convert book 1 of 1 (Streams of Silver)
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': 'c:\\users\\silint~1\\appdata\\local\\temp\\calibr e_0.6.37_a8ul2y.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_justify': False,
'extra_css': None,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'format': u'ereader',
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'inline_toc': True,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x04F8F970>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'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,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_encoding': 'cp1252',
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x04F8FB30>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\silint~1\\appdata\\local\\temp\\calibr e_0.6.37_xzfaef.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'series': None,
'series_index': None,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\Silinthar\Documents\My Kindle Content\R. A. Salvatore\Streams of Silver (110)\Streams of Silver - R. A. Salvatore.prc
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing Salvatore_R.-eams_of_Silver.html ...
Forcing Salvatore_R.-eams_of_Silver.html into XHTML namespace
Parsing styles.css ...
Property: Unknown Property name. [28:14: tab-interval]
Property: Unknown Property name. [28:32: text-justify-trim]
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Detected chapter: Book 1:
Detected chapter: Book 2:
Detected chapter: Book 3:
Auto generated TOC with 35 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Property: Unknown Property name. [14:1: tab-interval]
Property: Unknown Property name. [16:1: text-justify-trim]
Trimming 'images/00003.jpg' from manifest
Creating PDB Output...
Converting XHTML to PML markup...
Converting Salvatore_R.-eams_of_Silver.html to PML markup...
Generating table of contents...
Python function terminated unexpectedly
unexpected end of regular expression (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 99, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 852, in run
File "site-packages\calibre\ebooks\pdb\output.py", line 58, in convert
File "site-packages\calibre\ebooks\pdb\ereader\writer.py", line 45, in write_content
File "site-packages\calibre\ebooks\pdb\ereader\writer.py", line 108, in _index_item
File "re.py", line 186, in finditer
File "re.py", line 245, in _compile
sre_constants.error: unexpected end of regular expression


Can anyone tell me what is wrong, or pass it on to the developers?
silinthar is offline   Reply With Quote
Old 02-03-2010, 05:56 AM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
It's already been brought to my attention. It was a typo and has been corrected. It will work properly in the next release.
user_none is offline   Reply With Quote
Advert
Old 02-03-2010, 08:13 PM   #3
silinthar
Junior Member
silinthar began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2010
Device: ereader on BB Storm
Thanks.


BTW, do you know of a e-reader for the blackberry that supports epub that i can upload from my comp to my phone?
silinthar is offline   Reply With Quote
Old 09-26-2010, 07:09 PM   #4
kueriou
Junior Member
kueriou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: nook wi-fi
Question Are you sure you fixed it?

Just downloaded the newest version today when prompted (shows as ""), and today I got this during a convert:

Code:
Retrieving document metadata...
Error (7854): Missing 'endstream'
Error (7919): Missing 'endstream'
Error (7854): Missing 'endstream'
Error (7919): Missing 'endstream'
Error (32961): Missing 'endstream'
Generating manifest...
Rendering manifest...
Parsing all content...
Parsing index.html ...
Failed to parse content in index.html
Traceback (most recent call last):
  File "site-packages\calibre\ebooks\oeb\reader.py", line 159, in _manifest_prune_invalid
  File "site-packages\calibre\ebooks\oeb\base.py", line 1060, in fget
  File "site-packages\calibre\ebooks\oeb\base.py", line 789, in _parse_xhtml
  File "site-packages\calibre\ebooks\conversion\preprocess.py", line 431, in __call__
  File "site-packages\calibre\ebooks\conversion\preprocess.py", line 152, in __call__
  File "site-packages\calibre\ebooks\conversion\preprocess.py", line 133, in dehyphenate
  File "re.py", line 190, in compile
  File "re.py", line 245, in _compile
error: unexpected end of regular expression

Spine item 'id1' not found
Python function terminated unexpectedly
  Spine is empty (Error Code: 1)
kueriou is offline   Reply With Quote
Old 09-26-2010, 08:57 PM   #5
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,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by kueriou View Post
Just downloaded the newest version today when prompted (shows as ""), and today I got this during a convert:
The error previously reported in this thread was fixed in 0.6.38. What version of calibre are you running? To respond "Are you sure you fixed it?" 37 versions later is unfathomable.

Submit a detailed bug report with the book attached and hopefully it will get looked at.
DoctorOhh is offline   Reply With Quote
Advert
Old 09-27-2010, 01:17 AM   #6
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
The error details show this has nothing to do with pdb output. This is a bug in hyphen handling that was introduced with .7.20 - It only affects books which have strings containing regex meta-characters which are also hyphenated on line breaks. This should primarily affect pdf files, but it could also affect other file types if preprocessing is enabled under structure detection. Only workaround is to downgrade to .7.19 or wait til .7.21 which will include a fix for this error.

Last edited by ldolse; 09-27-2010 at 01:21 AM.
ldolse is offline   Reply With Quote
Old 10-01-2010, 02:18 AM   #7
kueriou
Junior Member
kueriou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: nook wi-fi
Thanks for the quick response, guys.

I realized after I posted that the error was not the same as the one I was CC'ing on. And I've gone back to .7.19 now, which seems to work just fine for the time being.

Thanks again for your help.
kueriou 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
Input/Output error tulsa Calibre 9 04-11-2010 10:51 AM
Problem with output of PDB files Katelyn Calibre 2 03-21-2010 01:01 PM
TXT->PDB (eReader) conversion error solitaire Calibre 5 01-25-2010 07:37 PM
Calibre 0.6.32 - pdb to epub conversion error niche99 Calibre 4 01-23-2010 12:13 PM
eReader output (pdb) has too much space on my iPhone bthoven Calibre 7 10-27-2009 07:43 AM


All times are GMT -4. The time now is 09:54 AM.


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