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
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.
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/
[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__
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
[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
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
[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
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