Prob with Freeze.py

Lemniscate d_blade8 at hotmail.com
Fri Nov 16 06:54:22 CET 2001


I am having a problem converting a python script into an exe.  The
script works fine/great when run normally, but when I try to Freeze it
I get the following error.  Anybody have any recommendations?  Thanks
a bunch.  Later.

Chris


PS- at the bottom of this script, I put the information that comes up
during the build...

C:\WINDOWS\Desktop\py2exe>UniLocString
Traceback (most recent call last):
  File "<string>", line 16, in ?
  File "C:\Python\support\imputil.py", line 98, in _import_hook
    top_module = self._import_top_module(parts[0])
  File "C:\Python\support\imputil.py", line 182, in _import_top_module
    module = self.fs_imp.import_from_dir(item, name)
  File "C:\Python\support\imputil.py", line 533, in import_from_dir
    return self._process_result(result, fqname)
  File "C:\Python\support\imputil.py", line 295, in _process_result
    exec code in module.__dict__
  File "C:\WINDOWS\DESKTOP\PY2EXE\EasyExcel.py", line 1, in ?
    import win32com.client
  File "C:\Python\support\imputil.py", line 98, in _import_hook
    top_module = self._import_top_module(parts[0])
  File "C:\Python\support\imputil.py", line 184, in _import_top_module
    module = item.import_top(name)
  File "C:\Python\support\imputil.py", line 211, in import_top
    return self._import_one(None, name, name)
  File "C:\Python\support\imputil.py", line 266, in _import_one
    module = self._process_result(result, fqname)
  File "C:\Python\support\imputil.py", line 295, in _process_result
    exec code in module.__dict__
  File "C:\Python21\win32com\__init__.py", line 5, in ?
    import win32api, sys
  File "C:\Python\support\imputil.py", line 101, in _import_hook
    raise ImportError, 'No module named ' + fqname
ImportError: No module named win32api



More information about the Python-list mailing list