LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2006, 05:38 PM   #1
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
wxpython UnicodeDecodeError


Hey,

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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wxpython on gentoo? Genjix Linux - Software 2 07-12-2005 05:02 PM
wxPython merchtemeagle Linux - Software 3 02-23-2005 10:50 AM
wxPython xlord Programming 0 05-23-2004 04:12 PM
wxPython. vexer Slackware 5 09-22-2003 03:11 PM
wxPython Filsta Linux - Software 0 08-20-2002 03:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration