Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2009, 12: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, 02: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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont put the file you're converting in the calibre program directory
kovidgoyal is offline   Reply With Quote
Advert
Old 12-22-2009, 03: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, 03: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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Something in HTML file is causing the problem. Can you post it?
kovidgoyal is offline   Reply With Quote
Old 12-22-2009, 05: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, 213 views)

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

Tags
calibre, ebook-convert


Forum Jump

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


All times are GMT -4. The time now is 02:52 PM.


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