From: Brian R. \(G. H. School\) <Row...@gr...> - 2010-07-23 06:03:10
|
Hi Guys I'm absolutely new to py2exe so forgive me if I'm asking a dumb question but I need help ASAP. I've got lines in a python file that executes perfectly until I compile it with py2exe using: ##################################### from distutils.core import setup import py2exe import sys import os # no arguments if len(sys.argv) == 1: sys.argv.append("py2exe") # creates a standalone .exe file, no zip files setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1, "bundle_files": 1, "includes" : ["encodings","encodings.*"], "packages" : ["encodings"] } }, zipfile = None, # replace myFile.py with your own code filename here ... windows = [{"script": 'add_ONE_student.py'}] ) ##################################### On running the exe I get a log file showing: Traceback (most recent call last): File "add_ONE_student.py", line 115, in on_add_user_clicked user = active_directory.find_user(username) File "active_directory.pyo", line 721, in find_user File "active_directory.pyo", line 743, in root File "active_directory.pyo", line 712, in AD File "win32com\client\__init__.pyo", line 72, in GetObject File "win32com\client\__init__.pyo", line 89, in Moniker File "win32com\client\__init__.pyo", line 43, in __WrapDispatch File "win32com\client\dynamic.pyo", line 112, in Dispatch File "win32com\client\dynamic.pyo", line 101, in _GetGoodDispatchAndUserName LookupError: unknown encoding: ascii Question: How do I fix the problem? Hope you can help. Kind regards Brian |