ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm working on a small wxPython app but I'm getting a weird decoding error and I don't know where it would be coming from. When I run it the window loads fine but rightclicking on the tray icon dumps this to the terminal (the app doesn't crash):
Quote:
File "btproximity.py", line 46, in PopupMenu
self.PopupMenu(menu)
File "btproximity.py", line 46, in PopupMenu
self.PopupMenu(menu)
File "btproximity.py", line 46, in PopupMenu
self.PopupMenu(menu)
File "btproximity.py", line 46, in PopupMenu
self.PopupMenu(menu)
File "btproximity.py", line 43, in PopupMenu
menu.Append(self.menushow, "Show Info")
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 10202, in Append
return _core_.Menu_Append(*args, **kwargs)
File "/usr/lib/python2.4/encodings/iso8859_1.py", line 22, in decode
return codecs.charmap_decode(input,errors,decoding_map)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x68 in position 1: character maps to <undefined>
That first bit is repeated a crapload of times. Here is the code. If anyone has any ideas I'd really appreciate it. It's a bit over my head, I've Googled and tried making manual calls to the codecs module to see if I can figure out what's causing it but no go. I recently changed my system locale from en_US to en_AU but running the script with --locale=en_US didn't make any difference
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.