View Single Post
Old 07-14-2015, 04:53 PM   #1176
jemc
Quietly Lurking...
jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.jemc ought to be getting tired of karma fortunes by now.
 
jemc's Avatar
 
Posts: 169
Karma: 2514918
Join Date: Dec 2009
Location: Wherever life takes me...
Device: Kindles, iDevices, others
I'm getting an odd little crash out of version 0.80. When I run kindleunpack.py from the command-line without redirecting output to a standard port or file this happens:

Spoiler:
C:\Temp\KU080>python lib\kindleunpack.py -h
KindleUnpack v0.80
Traceback (most recent call last):
File "lib\kindleunpack.py", line 1016, in <module>
sys.exit(main())
File "lib\kindleunpack.py", line 951, in main
print(" Based on initial mobipocket version Copyright © 2009 Charles M. H
annum <root@ihack.net>")
File "C:\Python27\lib\codecs.py", line 357, in write
data, consumed = self.encode(object, self.errors)
File "C:\Python27\lib\encodings\cp437.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\xa9' in position 4
9: character maps to <undefined>


The crash occurs regardless of command-line switches used.

When I redirect output: "python lib\kindleunpack.py -h >log.txt" kindleunpack.py executes correctly.

Version 0.77 works fine on my box in both the above cases.

I'm running Win8.1 64bit and tried both current ActivePython & Python.org v2.x & v3.x 32&64bit pythons with v0.80 - no joy.

No worries though, I've got my workaround for now.
jemc is offline   Reply With Quote