#68 problems with codecs

open
nobody
None
5
2005-03-12
2005-03-12
Anonymous
No

I have a program with the following code snippet

def parse(data):
lines = StringIO.StringIO(data).readlines()
servers = []
for line in lines:
servers.append(Server(line.decode('latin_1')))
return servers

this works fine when run through the python
interpreter, but when using py2exe generated exes i get
the following error.

LookupError: no codec search functions registered:
can't find encoding
Traceback (most recent call last):
File "metaui.pyc", line 137, in OnRefresh

File "metaui.pyc", line 101, in RefreshList

File "metaui.pyc", line 18, in fetch
☺
File "metaui.pyc", line 26, in parse
☺

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks