View Single Post
Old 07-14-2015, 06:15 PM   #1178
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
Quote:
Originally Posted by KevinH View Post
Hi,

That error happens in python 2.7 when the terminal encoding is not properly set to handle utf-8 characters. It is actually the copyright symbol in the "print" that is the issue.

If you are redirecting the output of the program in any way, python 2.7 is stupid enough to set sys.stdout to None. But that said, there is code in kindleunpack.py that should take care of this case for python 2.7.

<snip>

If you have python 3.4 available, could you please test with it to see if it barfs about the same thing?

Thanks,

Kevin
Ah, I've had other issues with the copyright symbol & utf-8...

Just tried it again with both Active Python 3.4.1 & Python.org 3.4.3 - crash.

Is it my understanding that you are saying this is 'supposed' to crash when I redirect output? --because the only way I can get v0.80 to properly execute from the command-line is to redirect output.

Best,
jemc
jemc is offline   Reply With Quote