Re: cx_freeze error : LookupError: no codec search functions registered:can't find encoding

2005-06-09 Thread Thomas W
Ok, I'll post my findings here since there are allready several questions about this topic on the net allready : The solution was to do an explicit import in my module, like so : from encodings import ascii from encodings import idna This solved the problem, at least in my case. Regards, Thomas

RE: cx_freeze error : LookupError: no codec search functions registered:can't find encoding

2005-06-09 Thread Ivan Shevanski
From: "Thomas W" <[EMAIL PROTECTED]> To: python-list@python.org Subject: cx_freeze error : LookupError: no codec search functions registered:can't find encoding Date: 9 Jun 2005 10:11:19 -0700 I get this error when I try to run a freezed exe on my ubuntu 5.

cx_freeze error : LookupError: no codec search functions registered: can't find encoding

2005-06-09 Thread Thomas W
I get this error when I try to run a freezed exe on my ubuntu 5.04 running Python 2.4 : LookupError: no codec search functions registered: can't find encoding I've tried to use --include-modules encodings,codecs when freezing without luck. Any hints? Regards, Thomas -- http://mail.python.org/

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: Thanks for your answer. I tried it and the result is: [cxfreeze]$ python Python 2.2.3 (#1, Oct 15 2003, 23:33:35) [GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. import re re.compile re.__file__

Re: cx_freeze error

2005-01-29 Thread zyqnews
Thanks for your answer. I tried it and the result is: [cxfreeze]$ python Python 2.2.3 (#1, Oct 15 2003, 23:33:35) [GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> re.compile >>> re.__file__ '/usr/lib/py

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: There is no any module like "re.py", I just compiled the hello.py it has only one line: print "hello!" Interesting. Just to confirm, could you try this? Run Python, and at the interactive prompt, type the following: >>> import re >>> re.compile >>> re.__file__ (path to

Re: cx_freeze error

2005-01-29 Thread zyqnews
There is no any module like "re.py", I just compiled the hello.py it has only one line: print "hello!" Anyone knows how? -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: I am new to Python. I made a script, and compiled it with cx_freeze, but I got the following message from it: [cxfreeze]$./FreezePython hello.py Traceback (most recent call last): File "initscripts/ConsoleKeepPath.py", line 15, in ? exec code in m.__dict__ File "FreezePytho

cx_freeze error

2005-01-29 Thread zyqnews
I am new to Python. I made a script, and compiled it with cx_freeze, but I got the following message from it: [cxfreeze]$./FreezePython hello.py Traceback (most recent call last): File "initscripts/ConsoleKeepPath.py", line 15, in ? exec code in m.__dict__ File "FreezePython.py", line 1, in ? File