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

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 06-08-2013, 03:35 PM   #1
RobFreundlich
Connoisseur
RobFreundlich began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Jan 2012
Device: Kindle Fire HDX
'builtin_function_or_method' object has no attribute 'rpartition'

Since upgrading to calibre 0.9.34, one of my custom recipes fails with the following error:

Code:
Converting XHTML to Mobipocket markup...
Python function terminated unexpectedly
  'builtin_function_or_method' object has no attribute 'rpartition' (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 189, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1160, in run
  File "site-packages\calibre\ebooks\conversion\plugins\mobi_output.py", line 205, in convert
  File "site-packages\calibre\ebooks\conversion\plugins\mobi_output.py", line 237, in write_mobi
  File "site-packages\calibre\ebooks\mobi\mobiml.py", line 113, in __call__
  File "site-packages\calibre\ebooks\mobi\mobiml.py", line 124, in mobimlize_spine
  File "site-packages\calibre\ebooks\mobi\mobiml.py", line 543, in mobimlize_elem
  File "site-packages\calibre\ebooks\mobi\mobiml.py", line 543, in mobimlize_elem
  File "site-packages\calibre\ebooks\mobi\mobiml.py", line 543, in mobimlize_elem
  File "site-packages\calibre\ebooks\mobi\mobiml.py", line 493, in mobimlize_elem
AttributeError: 'builtin_function_or_method' object has no attribute 'rpartition'
Anyone have any idea what this is or how I can fix it?

I've attached the recipe, although the recipe itself seems to run just fine. I can run it from the command line using this:

Code:
ebook-convert "Boston Globe Subscription_1005.recipe" .EPUB -vv --debug-pipeline debug --username ***** --password *****
It creates the EPUB correctly. It seems to be the EPUB-to-MOBI conversion that is failing. I've also attached the full job details.
Attached Files
File Type: zip Boston Globe Subscription_1005.zip (4.7 KB, 18 views)
File Type: txt jobDetails.txt (299.0 KB, 35 views)

Last edited by RobFreundlich; 06-08-2013 at 03:43 PM. Reason: Got more information
RobFreundlich is offline   Reply With Quote
Old 06-08-2013, 09:52 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,155
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
See https://bugs.launchpad.net/calibre/+bug/1188635
kovidgoyal is offline   Reply With Quote
Old 06-09-2013, 09:56 AM   #3
RobFreundlich
Connoisseur
RobFreundlich began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Jan 2012
Device: Kindle Fire HDX
That solved it. Thanks!
RobFreundlich is offline   Reply With Quote
Reply

Tags
python error

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'NoneType' object has no attribute '__getitem__' Steven630 Recipes 2 07-18-2012 09:41 PM
'NoneType' object has no attribute 'tag'? gweminence Calibre 7 09-13-2011 10:03 AM
Line' object has no attribute 'children mazzeltjes Calibre 0 02-12-2010 09:30 AM
'list' object has no attribute 'add_book' etc. mazzeltjes Calibre 1 12-26-2008 01:12 PM
'list' object has no attribute 'add_book' drmathprog Calibre 2 11-13-2008 04:52 PM


All times are GMT -4. The time now is 06:18 PM.


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