View Single Post
Old 12-09-2010, 08:19 AM   #1
foreverstud
Junior Member
foreverstud began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: dell axim,kindle
Cool converting complex 200 mb chm file

hello everyone

i ve been trying to convert a big chm file using calibre to mobi format

however got terribly stuck

this is what i get



Convert book 1 of 1 (Oxford TexbookOfClinicalNephrology)
Resolved conversion options
calibre version: 0.7.31
{'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(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'extra_css': None,
'extract_to': None,
'flow_size': 260,
'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>)' ,
'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>)' ,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0578F270>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': u'//h:div[re:test(@id, "CHAPTER", "i")]',
'level2_toc': u'//h:h2[re:test(@class, "chapter", "i")]',
'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': 110,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.MSReaderOutput object at 0x0578F5B0>,
'page_breaks_before': u'//h:h2[re:test(@class, "CHAPTER", "i")]',
'prefer_metadata_cover': False,
'preprocess_html': True,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\newuse~1\\appdata\\local\\temp\\calibr e_0.7.31_tmp_tyoayl\\calibre_0.7.31_mbc7sm.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,
'smarten_punctuation': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 1,
'use_auto_toc': True,
'verbose': 2}
InputFormatPlugin: CHM Input running
on C:\Users\New User\Calibre Library\Unknown\Oxford TexbookOfClinicalNephrology (99)\Oxford TexbookOfClinicalNephrology - Unknown.chm
Processing CHM...
tdir=c:\users\newuse~1\appdata\local\temp\calibre_ 0.7.31_tmp_tyoayl\calibre_0.7.31_9bkwkd_chm2oeb
stream.name=C:\Users\New User\Calibre Library\Unknown\Oxford TexbookOfClinicalNephrology (99)\Oxford TexbookOfClinicalNephrology - Unknown.chm
Opening CHM file
Extracting CHM to c:\users\newuse~1\appdata\local\temp\calibre_0.7.3 1_tmp_tyoayl\calibre_0.7.31_9bkwkd_chm2oeb
Python function terminated unexpectedly
[Error 206] The filename or extension is too long: 'c:\\users\\newuse~1\\appdata\\local\\temp\\calibr e_0.7.31_tmp_tyoayl\\calibre_0.7.31_9bkwkd_chm2oeb \\1 - Assessment of the patient with renal disease/1.6 - Imaging in nephrology/1.6.1 - Imaging techniques/1.6.1.iii - Percutaneous nephrostomy and ureteral stenting_files' (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 107, 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 836, in run
File "site-packages\calibre\customize\conversion.py", line 216, in __call__
File "site-packages\calibre\ebooks\chm\input.py", line 50, in convert
File "site-packages\calibre\ebooks\chm\input.py", line 27, in _chmtohtml
File "site-packages\calibre\ebooks\chm\reader.py", line 238, in extract_content
File "site-packages\calibre\ebooks\chm\reader.py", line 99, in ExtractFiles
File "site-packages\calibre\ebooks\chm\reader.py", line 235, in _ensure_dir
File "os.py", line 157, in makedirs
WindowsError: [Error 206] The filename or extension is too long: 'c:\\users\\newuse~1\\appdata\\local\\temp\\calibr e_0.7.31_tmp_tyoayl\\calibre_0.7.31_9bkwkd_chm2oeb \\1 - Assessment of the patient with renal disease/1.6 - Imaging in nephrology/1.6.1 - Imaging techniques/1.6.1.iii - Percutaneous nephrostomy and ureteral stenting_files'



plz help
foreverstud is offline   Reply With Quote