Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2015, 05:21 AM   #1
JonathanWayne
Junior Member
JonathanWayne began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2015
Device: None
Error when I try to "Print to PDF File"

When I try to "Print to PDF File" from the Calibre internal viewer, I get this error:

Code:
calibre, version 2.27.0
ERROR: Unhandled exception: <b>UnicodeDecodeError</b>:'utf8' codec can't decode byte 0xb9 in position 11: invalid start byte

calibre 2.27 [64bit]  isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\viewer\main.py", line 312, in print_book
  File "site-packages\calibre\gui2\viewer\printing.py", line 182, in print_book
  File "site-packages\calibre\gui2\viewer\printing.py", line 30, in __init__
  File "site-packages\calibre\gui2\widgets2.py", line 157, in __init__
  File "site-packages\calibre\gui2\viewer\printing.py", line 37, in setup_ui
  File "ntpath.py", line 310, in expanduser
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb9 in position 11: invalid start byte
I'm running a Korean version of Windows 8.1 (64-bit). I'm running the 64-bit version of Calibre 2.27 (latest as of this post).

I can read the ebooks files, but I just can't use the "Print to PDF file" function. The ebooks themselves aren't the issue because this happens with all formats (AZW3, MOBI, EPUB) and I've had success using the same "Print to PDF file" function on them on a different computer.

This seems to be an issue with my computer and my particular installation of Calibre.

I tried uninstalling and reinstalling Calibre multiple times. I even used Revo Uninstaller to do a complete uninstall. The same issue persists, which is very frustrating.
JonathanWayne is offline   Reply With Quote
Old 05-05-2015, 07:04 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: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...616aa0bc461cf0
kovidgoyal is offline   Reply With Quote
Advert
Old 05-05-2015, 12:32 PM   #3
JonathanWayne
Junior Member
JonathanWayne began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2015
Device: None
Quote:
Originally Posted by kovidgoyal View Post
Thank you, I believe that will help. However, I'm not sure how to replace the file - can you let me know how? I tried entering the code into notepad and saving it as printing.py, but it won't let me add it to the pylib.zip file.

Thanks for your help!
JonathanWayne is offline   Reply With Quote
Old 05-05-2015, 12:52 PM   #4
JonathanWayne
Junior Member
JonathanWayne began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2015
Device: None
Thank you!

I figured out the issue (the zip file was read only, hah).

The printing works perfectly now. Thanks a lot for your help!
JonathanWayne is offline   Reply With Quote
Old 05-05-2015, 03:31 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
That's one way of fixing it!

(I usually use http://manual.calibre-ebook.com/develop.html though...)
eschwartz is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
this file converts with no error but the resulting file is "invalid" mlevin77 Conversion 3 01-11-2014 08:34 AM
ES file explorer: getting error "network path not found or timed out" JoeyBlaze Kindle Fire 29 03-05-2012 03:07 PM
"Absinthe Fish" online now (BULL SPEC #5, PDF/Print) Vintage Season Self-Promotions by Authors and Publishers 2 02-03-2012 04:14 PM
Call "print newspapers" as "snailpapers" because they arrive with news is 12 hrs old taglines Lounge 4 02-05-2010 10:01 AM
The Dreaded "Failed to Make Sony Reader File" Error JEMelby Sony Reader 7 08-21-2007 09:03 PM


All times are GMT -4. The time now is 09:53 AM.


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