[python-win32] Strange error

Gianluca Di Carlo gianluca at letreporte.it
Tue Jan 18 16:24:02 CET 2005


Hi, i'm a new in this list.
I'm a strnage problem with a wxpython application when i build a exe 
file with py2exe.
I use a xmlrpc to execute a call to a function in a zope server. Thi 
function is protect with username and password. So I use the module 
BasicAuthTransport to authenticate agaist zope server. If I lanch the 
application from console with python it's all right.
If I use py2exe e lanche the executable file I obtain this error:

Traceback (most recent call last):
 File "Main.pyc", line 268, in OnServerConnettiMenu
 File "xmlrpclib.pyc", line 1029, in __call__
 File "xmlrpclib.pyc", line 1316, in __request
 File "BasicAuthTransport.pyc", line 24, in request
 File "httplib.pyc", line 712, in endheaders
 File "httplib.pyc", line 597, in _send_output
 File "httplib.pyc", line 564, in send
 File "httplib.pyc", line 532, in connect
LookupError: unknown encoding: idna

Here the output of py2exe:

running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'wx._misc_'
creating python loader for extension 'datetime'
creating python loader for extension 'zlib'
creating python loader for extension '_winreg'
creating python loader for extension 'wx._html'
creating python loader for extension 'wx._gizmos'
creating python loader for extension '_sre'
creating python loader for extension '_socket'
creating python loader for extension 'wx._windows_'
creating python loader for extension 'wx._gdi_'
creating python loader for extension 'pyexpat'
creating python loader for extension 'wx._controls_'
creating python loader for extension '_ssl'
creating python loader for extension 'wx._core_'
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
skipping byte-compilation of C:\IntranetMessenger\BasicAuthTransport.py 
to BasicAuthTransport.pyc
byte-compiling C:\IntranetMessenger\Main.py to Main.pyc
skipping byte-compilation of C:\IntranetMessenger\NewMessage.py to 
NewMessage.pyc
byte-compiling C:\IntranetMessenger\autentificazione.py to 
autentificazione.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\_socket.py to _socket.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\_sre.py to _sre.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\_ssl.py to _ssl.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\_winreg.py to _winreg.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\datetime.py to 
datetime.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\pyexpat.py to pyexpat.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\wx._controls_.py to 
wx\_controls_.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\wx._core_.py to 
wx\_core_.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\wx._gdi_.py to 
wx\_gdi_.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\wx._gizmos.py to 
wx\_gizmos.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\wx._html.py to 
wx\_html.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\wx._misc_.py to 
wx\_misc_.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\wx._windows_.py to 
wx\_windows_.pyc
byte-compiling 
C:\IntranetMessenger\build\bdist.win32\winexe\temp\zlib.py to zlib.pyc
skipping byte-compilation of C:\IntranetMessenger\cPAMIE.py to cPAMIE.pyc
skipping byte-compilation of C:\IntranetMessenger\configurazione.py to 
configurazione.pyc
skipping byte-compilation of C:\IntranetMessenger\feedparser.py to 
feedparser.pyc
skipping byte-compilation of C:\IntranetMessenger\lastcontents.py to 
lastcontents.pyc
skipping byte-compilation of C:\IntranetMessenger\messengerThread.py to 
messengerThread.pyc
skipping byte-compilation of C:\IntranetMessenger\utils.py to utils.pyc
skipping byte-compilation of C:\IntranetMessenger\ztaskbar.py to 
ztaskbar.pyc
skipping byte-compilation of D:\Python23\lib\StringIO.py to StringIO.pyc
skipping byte-compilation of D:\Python23\lib\UserDict.py to UserDict.pyc
skipping byte-compilation of D:\Python23\lib\__future__.py to __future__.pyc
skipping byte-compilation of D:\Python23\lib\_strptime.py to _strptime.pyc
skipping byte-compilation of D:\Python23\lib\atexit.py to atexit.pyc
skipping byte-compilation of D:\Python23\lib\base64.py to base64.pyc
skipping byte-compilation of D:\Python23\lib\bisect.py to bisect.pyc
skipping byte-compilation of D:\Python23\lib\calendar.py to calendar.pyc
skipping byte-compilation of D:\Python23\lib\cgi.py to cgi.pyc
skipping byte-compilation of D:\Python23\lib\codecs.py to codecs.pyc
skipping byte-compilation of D:\Python23\lib\copy.py to copy.pyc
skipping byte-compilation of D:\Python23\lib\copy_reg.py to copy_reg.pyc
skipping byte-compilation of D:\Python23\lib\dis.py to dis.pyc
skipping byte-compilation of D:\Python23\lib\dummy_thread.py to 
dummy_thread.pyc
skipping byte-compilation of D:\Python23\lib\encodings\__init__.py to 
encodings\__init__.pyc
skipping byte-compilation of D:\Python23\lib\encodings\aliases.py to 
encodings\aliases.pyc
skipping byte-compilation of D:\Python23\lib\fnmatch.py to fnmatch.pyc
skipping byte-compilation of D:\Python23\lib\ftplib.py to ftplib.pyc
skipping byte-compilation of D:\Python23\lib\getopt.py to getopt.pyc
skipping byte-compilation of D:\Python23\lib\getpass.py to getpass.pyc
skipping byte-compilation of D:\Python23\lib\glob.py to glob.pyc
skipping byte-compilation of D:\Python23\lib\gopherlib.py to gopherlib.pyc
skipping byte-compilation of D:\Python23\lib\gzip.py to gzip.pyc
skipping byte-compilation of D:\Python23\lib\htmlentitydefs.py to 
htmlentitydefs.pyc
skipping byte-compilation of D:\Python23\lib\httplib.py to httplib.pyc
skipping byte-compilation of D:\Python23\lib\inspect.py to inspect.pyc
skipping byte-compilation of D:\Python23\lib\linecache.py to linecache.pyc
skipping byte-compilation of D:\Python23\lib\locale.py to locale.pyc
skipping byte-compilation of D:\Python23\lib\macpath.py to macpath.pyc
skipping byte-compilation of D:\Python23\lib\macurl2path.py to 
macurl2path.pyc
skipping byte-compilation of D:\Python23\lib\markupbase.py to markupbase.pyc
skipping byte-compilation of D:\Python23\lib\mimetools.py to mimetools.pyc
skipping byte-compilation of D:\Python23\lib\mimetypes.py to mimetypes.pyc
skipping byte-compilation of D:\Python23\lib\ntpath.py to ntpath.pyc
skipping byte-compilation of D:\Python23\lib\nturl2path.py to nturl2path.pyc
skipping byte-compilation of D:\Python23\lib\opcode.py to opcode.pyc
skipping byte-compilation of D:\Python23\lib\os.py to os.pyc
skipping byte-compilation of D:\Python23\lib\os2emxpath.py to os2emxpath.pyc
skipping byte-compilation of D:\Python23\lib\popen2.py to popen2.pyc
skipping byte-compilation of D:\Python23\lib\posixpath.py to posixpath.pyc
skipping byte-compilation of D:\Python23\lib\pprint.py to pprint.pyc
skipping byte-compilation of D:\Python23\lib\quopri.py to quopri.pyc
skipping byte-compilation of D:\Python23\lib\random.py to random.pyc
skipping byte-compilation of D:\Python23\lib\re.py to re.pyc
skipping byte-compilation of D:\Python23\lib\repr.py to repr.pyc
skipping byte-compilation of D:\Python23\lib\rfc822.py to rfc822.pyc
skipping byte-compilation of D:\Python23\lib\sgmllib.py to sgmllib.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\__init__.py to 
wx\__init__.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\__version__.py to 
wx\__version__.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\_controls.py to 
wx\_controls.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\_core.py to 
wx\_core.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\_gdi.py to wx\_gdi.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\_misc.py to 
wx\_misc.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\_windows.py to 
wx\_windows.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\gizmos.py to 
wx\gizmos.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\html.py to wx\html.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\lib\__init__.py to 
wx\lib\__init__.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\lib\buttons.py to 
wx\lib\buttons.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\lib\imageutils.py 
to wx\lib\imageutils.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\lib\mixins\__init__.py 
to wx\lib\mixins\__init__.pyc
skipping byte-compilation of 
D:\Python23\lib\site-packages\wx-2.5.3-msw-unicode\wx\lib\mixins\listctrl.py 
to wx\lib\mixins\listctrl.pyc
skipping byte-compilation of D:\Python23\lib\socket.py to socket.pyc
skipping byte-compilation of D:\Python23\lib\sre.py to sre.pyc
skipping byte-compilation of D:\Python23\lib\sre_compile.py to 
sre_compile.pyc
skipping byte-compilation of D:\Python23\lib\sre_constants.py to 
sre_constants.pyc
skipping byte-compilation of D:\Python23\lib\sre_parse.py to sre_parse.pyc
skipping byte-compilation of D:\Python23\lib\stat.py to stat.pyc
skipping byte-compilation of D:\Python23\lib\string.py to string.pyc
skipping byte-compilation of D:\Python23\lib\tempfile.py to tempfile.pyc
skipping byte-compilation of D:\Python23\lib\threading.py to threading.pyc
skipping byte-compilation of D:\Python23\lib\token.py to token.pyc
skipping byte-compilation of D:\Python23\lib\tokenize.py to tokenize.pyc
skipping byte-compilation of D:\Python23\lib\traceback.py to traceback.pyc
skipping byte-compilation of D:\Python23\lib\types.py to types.pyc
skipping byte-compilation of D:\Python23\lib\urllib.py to urllib.pyc
skipping byte-compilation of D:\Python23\lib\urllib2.py to urllib2.pyc
skipping byte-compilation of D:\Python23\lib\urlparse.py to urlparse.pyc
skipping byte-compilation of D:\Python23\lib\uu.py to uu.pyc
skipping byte-compilation of D:\Python23\lib\warnings.py to warnings.pyc
skipping byte-compilation of D:\Python23\lib\weakref.py to weakref.pyc
skipping byte-compilation of D:\Python23\lib\webbrowser.py to webbrowser.pyc
skipping byte-compilation of D:\Python23\lib\xml\__init__.py to 
xml\__init__.pyc
skipping byte-compilation of D:\Python23\lib\xml\parsers\__init__.py to 
xml\parsers\__init__.pyc
skipping byte-compilation of D:\Python23\lib\xml\parsers\expat.py to 
xml\parsers\expat.pyc
skipping byte-compilation of D:\Python23\lib\xml\sax\__init__.py to 
xml\sax\__init__.pyc
skipping byte-compilation of D:\Python23\lib\xml\sax\_exceptions.py to 
xml\sax\_exceptions.pyc
skipping byte-compilation of D:\Python23\lib\xml\sax\expatreader.py to 
xml\sax\expatreader.pyc
skipping byte-compilation of D:\Python23\lib\xml\sax\handler.py to 
xml\sax\handler.pyc
skipping byte-compilation of D:\Python23\lib\xml\sax\saxutils.py to 
xml\sax\saxutils.pyc
skipping byte-compilation of D:\Python23\lib\xml\sax\xmlreader.py to 
xml\sax\xmlreader.pyc
skipping byte-compilation of D:\Python23\lib\xmllib.py to xmllib.pyc
skipping byte-compilation of D:\Python23\lib\xmlrpclib.py to xmlrpclib.pyc
*** copy extensions ***
*** copy dlls ***
setting sys.winver for 'C:\IntranetMessenger\dist\python23.dll' to 'Z 
Intranet Messenger'
copying D:\Python23\lib\site-packages\py2exe\run_w.exe -> 
C:\IntranetMessenger\dist\IntranetMessenger.exe
The following modules appear to be missing
['cjkcodecs.aliases', 'iconv_codec', 'mx.Tidy', 'pywintypes', 
'timeoutsocket', 'win32com.client', 'win32con', 'win32gui', 
'wx.BitmapFromImage', 'wx.EmptyIcon', 'wx.NewId']

Can anyone help me?

Best regards

Gianluca Di Carlo


More information about the Python-win32 mailing list