py2exe and win32com

Discussion in 'Python' started by Marc, Oct 15, 2003.

  1. Marc

    Marc Guest

    Hi all,

    I tried for the first time compiling an app using py2exe and COM and
    had little success in getting it to run. I browsed for help, but
    couldn't find anything that was giving the error I'm getting. This is
    the problem:

    Traceback (most recent call last):
    File "<string>", line 7, in ?
    File "imputil.pyc", line 103, in _import_hook
    File "<string>", line 52, in _import_top_module
    File "imputil.pyc", line 216, in import_top
    File "imputil.pyc", line 271, in _import_one
    File "<string>", line 128, in _process_result
    File "excel.pyc", line 1, in ?
    File "imputil.pyc", line 132, in _import_hook
    File "<string>", line 70, in _finish_import
    File "imputil.pyc", line 316, in _load_tail
    File "imputil.pyc", line 271, in _import_one
    File "<string>", line 128, in _process_result
    File "win32com\client\__init__.pyc", line 12, in ?
    File "imputil.pyc", line 93, in _import_hook
    File "imputil.pyc", line 347, in _do_import
    File "imputil.pyc", line 271, in _import_one
    File "<string>", line 128, in _process_result
    File "win32com\client\gencache.pyc", line 519, in ?
    File "win32com\client\gencache.pyc", line 44, in __init__
    File "win32com\client\gencache.pyc", line 507, in Rebuild
    File "win32com\client\gencache.pyc", line 49, in _SaveDicts
    File "win32com\client\gencache.pyc", line 96, in GetGeneratePath
    IOError: [Errno 2] No such file or directory:
    'L:\\gen_py\\__init__.py'

    There must be a special way to include the win32 modules, but I can't
    figure it out. Could someone point me in the right direction.

    Thanks,
    Marc
     
    Marc, Oct 15, 2003
    #1
    1. Advertising

  2. (Marc) writes:

    > Hi all,
    >
    > I tried for the first time compiling an app using py2exe and COM and
    > had little success in getting it to run. I browsed for help, but
    > couldn't find anything that was giving the error I'm getting. This is
    > the problem:
    >
    > Traceback (most recent call last):
    > File "<string>", line 7, in ?
    > File "imputil.pyc", line 103, in _import_hook
    > File "<string>", line 52, in _import_top_module
    > File "imputil.pyc", line 216, in import_top
    > File "imputil.pyc", line 271, in _import_one
    > File "<string>", line 128, in _process_result
    > File "excel.pyc", line 1, in ?
    > File "imputil.pyc", line 132, in _import_hook
    > File "<string>", line 70, in _finish_import
    > File "imputil.pyc", line 316, in _load_tail
    > File "imputil.pyc", line 271, in _import_one
    > File "<string>", line 128, in _process_result
    > File "win32com\client\__init__.pyc", line 12, in ?
    > File "imputil.pyc", line 93, in _import_hook
    > File "imputil.pyc", line 347, in _do_import
    > File "imputil.pyc", line 271, in _import_one
    > File "<string>", line 128, in _process_result
    > File "win32com\client\gencache.pyc", line 519, in ?
    > File "win32com\client\gencache.pyc", line 44, in __init__
    > File "win32com\client\gencache.pyc", line 507, in Rebuild
    > File "win32com\client\gencache.pyc", line 49, in _SaveDicts
    > File "win32com\client\gencache.pyc", line 96, in GetGeneratePath
    > IOError: [Errno 2] No such file or directory:
    > 'L:\\gen_py\\__init__.py'
    >
    > There must be a special way to include the win32 modules, but I can't
    > figure it out. Could someone point me in the right direction.


    Marc,

    I already replied to the private email you sent me without seeing this
    one. Maybe this bug report is also related (if you're using the py2exe
    0.5 version, with Python 2.3):
    <http://sourceforge.net/tracker/index.php?func=detail&aid=819615&group_id=15583&atid=115583>

    But I'm not really sure if it works or not.

    Thomas
     
    Thomas Heller, Oct 16, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. F. GEIGER
    Replies:
    0
    Views:
    922
    F. GEIGER
    Aug 16, 2004
  2. Replies:
    2
    Views:
    628
    Mudcat
    Jun 3, 2005
  3. Replies:
    1
    Views:
    406
  4. Mark Hammond
    Replies:
    0
    Views:
    424
    Mark Hammond
    Mar 25, 2009
  5. Trevor

    py2exe + win32com + DAO

    Trevor, May 13, 2009, in forum: Python
    Replies:
    4
    Views:
    647
    Trevor
    May 14, 2009
Loading...

Share This Page