By the way, I really need some documentation to tell how to use wx.html2.WebViewHandler and wx.FileSystemHandler since the current documentation is really poor! And the so called zip handler is also not existed!
Is there anyone who can tell me how to fix this issue?
It seems to be not a issue of WxPython, nor PyEnv, nor Python, however, I really have no idea how it appears. Since this is a new issue after I upgrade to 4.1.0a1.dev, there could possibly also wxpython related.
Do you have any idea about this issue? Is there a way to avoid this Exception when using wxpython?
I was worried that that change might cause problems, but if it’s failing in locale.getlocale() then it is almost certainly a pyenv problem. I didn’t expect that this function could be a failure point.
Just to be sure that wx is not triggering the problem somehow, please try testing locale.getlocale() without importing wx, and also try the same with a stock python.
I’ll wrap that line in a try…except anyway as there is a reasonable fallback available.
Thanks again. A try … except block would be great to make the console clean. In fact, I tried to add a try…exept but faild since I am not clear where should I put this declaration.