View Single Post
Old 12-03-2015, 07:52 AM   #189
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Since v3.0, Penelope works with both Python 2.7.x and 3.x.

It looks more like a shell encoding problem.

I tried reproducing oren64's issue on a Windows Vista machine (I do not have a more recent Windows machine), and with Python 2.7.x I was not able to, penelope v3.1.1 worked as expected, including cleaning up all the temporary files. I also tried changing the windows prompt encoding using chcp and it still worked as expected, also with ??.html files containing non-ASCII characters.

Then, I thought the bug was with Python 3.5 only. I tried installing it on the same Vista machine, but I was not able to run it since it complains about a missing DLL, and I gave up on it.

Yeah, maybe the workaround "rename the ??.html files to say 99.html before removing them" works, but I would like to be able to reproduce the issue and understand it, before throwing in random hacks.

@oren64: sorry, but for now you need to clean your Temp manually. What is the output of

> chcp

(It should print the current shell encoding)

Can you try changing it to latin1 and try again?

> chcp 850

Have you tried using Python 2.7.x instead?
AlPe is offline   Reply With Quote