Hi:

In my programe, I use the win32com.client module and it works in my
environment.
I want to package it with cx_freeze to work in other computer without python
installed.
I can simplify the code like these:
========================
import sys
import win32com.client


if __name__ == "__main__":
    print("hello win32com.client")
=======================

But I got the message when I package:
Missing modules:
? new imported from win32com.client

And when I run the generated .exe, it shows the error:

Traceback (most recent call last):
  File "C:\Python31\lib\site-packages\cx_Freeze\initscripts\Console3.py",
line 27, in <module>
    exec(code, m.__dict__)
  File "hello.py", line 2, in <module>
  File "C:\Python31\lib\site-packages\win32com\client\__init__.py", line 10,
in<module>
    from . import dynamic
ImportError: cannot import name dynamic

I also used the flag to package it like
C:\Python31\Scripts>cxfreeze hello.py
--include-path=C:\Python31\Lib\site-packag
but is not useful.

Can someone help me to package the .py includeing the module win32com.client
Thank you, Ryan.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to