12-22-2009, 12:18 PM | #1 |
dude
Posts: 51
Karma: 628
Join Date: Dec 2009
Device: Nook
|
Trouble with ebook-convert
I'm trying to convert an HTML file to an RTF file. The conversion works when I am using Calibre GUI, but when I try to run the .exe - it fails.
What am I doing wrong? Code:
C:\Program Files\Calibre2>ebook-convert.exe index.html something.rtf 1% Converting input to HTML... InputFormatPlugin: HTML Input running on C:\Program Files\Calibre2\index.html Language not specified Creator not specified Building file list... Initial parse failed: Parsing file 'index.html' as HTML Forcing index.html into XHTML namespace Python function terminated unexpectedly _getfullpathname() argument 1 must be (buffer overflow), not str (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\ebooks\conversion\cli.py", line 249, in main File "site-packages\calibre\ebooks\conversion\plumber.py", line 736, in run File "site-packages\calibre\customize\conversion.py", line 208, in __call__ File "site-packages\calibre\ebooks\html\input.py", line 286, in convert File "site-packages\calibre\ebooks\html\input.py", line 361, in create_oebbook File "site-packages\calibre\ebooks\oeb\base.py", line 179, in rewrite_links File "site-packages\calibre\ebooks\html\input.py", line 411, in resource_adder File "site-packages\calibre\startup.py", line 81, in my_abspath File "ntpath.py", line 459, in abspath TypeError: _getfullpathname() argument 1 must be (buffer overflow), not str |
12-22-2009, 02:20 PM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont put the file you're converting in the calibre program directory
|
Advert | |
|
12-22-2009, 03:01 PM | #3 |
dude
Posts: 51
Karma: 628
Join Date: Dec 2009
Device: Nook
|
Tried it with the input file in C:\
Still doesn't work. Code:
C:\Program Files\Calibre2>ebook-convert.exe C:\index.html C:\argh.rtf 1% Converting input to HTML... InputFormatPlugin: HTML Input running on C:\index.html Language not specified Creator not specified Building file list... Initial parse failed: Parsing file 'index.html' as HTML Forcing index.html into XHTML namespace Python function terminated unexpectedly _getfullpathname() argument 1 must be (buffer overflow), not str (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\ebooks\conversion\cli.py", line 249, in main File "site-packages\calibre\ebooks\conversion\plumber.py", line 736, in run File "site-packages\calibre\customize\conversion.py", line 208, in __call__ File "site-packages\calibre\ebooks\html\input.py", line 286, in convert File "site-packages\calibre\ebooks\html\input.py", line 361, in create_oebbook File "site-packages\calibre\ebooks\oeb\base.py", line 179, in rewrite_links File "site-packages\calibre\ebooks\html\input.py", line 411, in resource_adder File "site-packages\calibre\startup.py", line 81, in my_abspath File "ntpath.py", line 459, in abspath TypeError: _getfullpathname() argument 1 must be (buffer overflow), not str C:\Program Files\Calibre2> |
12-22-2009, 03:47 PM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Something in HTML file is causing the problem. Can you post it?
|
12-22-2009, 05:29 PM | #5 |
dude
Posts: 51
Karma: 628
Join Date: Dec 2009
Device: Nook
|
Aaaaand it works now. That is so weird.
I just ran the exact same commands with the same files with the same filepaths, and now it magically works. Thanks kovid Last edited by quicksilver; 12-22-2009 at 05:48 PM. Reason: Things magically work now |
Advert | |
|
Tags |
calibre, ebook-convert |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble converting ebook. | bkz81 | Calibre | 0 | 10-12-2010 05:30 PM |
Trouble sending ebook to PRS700 | ariasunlimited | Calibre | 2 | 01-21-2010 02:03 AM |
having trouble getting books to convert | misschris | Calibre | 2 | 01-13-2010 12:02 PM |
Anyone else having trouble with Sony's eBook store? | wallflower75 | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 09-01-2009 11:50 AM |
Trouble in my ebook | Linda R | Introduce Yourself | 6 | 08-06-2009 09:42 AM |