Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-26-2013, 08:09 AM   #1
jeep
Junior Member
jeep began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2013
Device: kindle
bug: local variable 'filename' referenced before assignment

after editing and saving the azw3 file by 'Edit E book', i could't open the book. here's the information:

error: local variable 'filename' referenced before assignment

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\main.py", line 40, in run
File "threading.py", line 761, in run
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 99, in __enter__
File "site-packages\calibre\customize\conversion.py", line 241, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\mobi_in put.py", line 43, in convert
File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 92, in __call__
File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 207, in build_parts
UnboundLocalError: local variable 'filename' referenced before assignment
Attached Files
File Type: azw3 ????????.azw3 (773.2 KB, 360 views)
jeep is offline   Reply With Quote
Old 12-26-2013, 08:47 AM   #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,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This will happen if you create an empty HTML file (with no content in the <body> tags) and save the azw3. https://github.com/kovidgoyal/calibr...f95e5b2361d187
kovidgoyal is offline   Reply With Quote
Old 12-26-2013, 10:25 AM   #3
jeep
Junior Member
jeep began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2013
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
This will happen if you create an empty HTML file (with no content in the <body> tags) and save the azw3. https://github.com/kovidgoyal/calibr...f95e5b2361d187
ya, I see. I remember deleting the content. But how to deal with the problem? The file couldn't be opened by calibre now. Should I try in other ways? Thanks a lot.
jeep is offline   Reply With Quote
Old 12-26-2013, 09:45 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,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simply wait for the next calibre release.
kovidgoyal is offline   Reply With Quote
Old 12-26-2013, 11:36 PM   #5
jeep
Junior Member
jeep began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2013
Device: kindle
that's great!
expecting
jeep is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Polish - embed all referenced fonts Sunlite Calibre 3 12-20-2013 01:37 PM
Possible cover design assignment James_Wilde Writers' Corner 6 07-31-2012 10:54 PM
Referenced Resource missing from package dgbeig ePub 5 05-19-2011 03:08 AM
Opus Bug with the side-key assignment?! CryoGenID Bookeen 14 04-01-2011 04:09 AM
Opening of referenced PDF file DrBibber iRex 2 07-30-2006 09:28 PM


All times are GMT -4. The time now is 11:38 AM.


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