From: <bc...@wo...> - 2001-09-04 19:14:46
|
[Scott Hathaway] >After much help from Robet Bill, I have my applet issues down to a = >single problem. If I take out the urllib.urlretrieve calls, the applet = >works ok. If I leave them in, it dies with a message about not being = >able to find the codec (the exact message is below): > >Lookup Error: no codec search functions registered: can't find = >encoding > >Does anyone know what this means and how to get around it? It is caused by this bug: > http://sourceforge.net/tracker/?group_id=12867&atid=112867&func=detail&aid=448523 where the builtin "ascii" codec wasn't found when requesting the use of the "ASCII" codec (which is what urllib is doing). Try add a dummy function like this: def dummy_jythonc(): import encodings.ascii The dummy method shouldn't be called at all. It just have to be there so that jythonc can see it and include the codec in the resulting .jar file. The bug will be fixed in the 2.1b1 release. regards, finn |