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 12-22-2009, 01:18 PM   #1
quicksilver
dude
quicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enough
 
quicksilver's Avatar
 
Posts: 51
Karma: 628
Join Date: Dec 2009
Device: Nook
Question 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
Thanks.
quicksilver is offline   Reply With Quote
Old 12-22-2009, 03:20 PM   #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: 26,319
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont put the file you're converting in the calibre program directory
kovidgoyal is online now   Reply With Quote
 
Advertisement
Old 12-22-2009, 04:01 PM   #3
quicksilver
dude
quicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enough
 
quicksilver's Avatar
 
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>
quicksilver is offline   Reply With Quote
Old 12-22-2009, 04:47 PM   #4
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: 26,319
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Something in HTML file is causing the problem. Can you post it?
kovidgoyal is online now   Reply With Quote
Old 12-22-2009, 06:29 PM   #5
quicksilver
dude
quicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enoughquicksilver will become famous soon enough
 
quicksilver's Avatar
 
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
Attached Files
File Type: zip index.zip (31.9 KB, 77 views)

Last edited by quicksilver; 12-22-2009 at 06:48 PM. Reason: Things magically work now
quicksilver is offline   Reply With Quote
Reply

Tags
calibre, ebook-convert

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble converting ebook. bkz81 Calibre 0 10-12-2010 06:30 PM
Trouble sending ebook to PRS700 ariasunlimited Calibre 2 01-21-2010 03:03 AM
having trouble getting books to convert misschris Calibre 2 01-13-2010 01:02 PM
Anyone else having trouble with Sony's eBook store? wallflower75 Deals, Freebies, and Resources (No Self-Promotion) 4 09-01-2009 12:50 PM
Trouble in my ebook Linda R Introduce Yourself 6 08-06-2009 10:42 AM


All times are GMT -4. The time now is 05:33 AM.


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