Thanks for the tip.
Indeed, OpenOPC calls some function of this module directly.
About the link you gave me, I've read it but I don't really understand how to use the solution one and two, and the third solution seems not to work for me.

Would you give me just a little more insight for this ?
Thanks a lot.

2009/11/25 Mark Hammond <skippy.hammond@gmail.com>
On 26/11/2009 2:20 AM, Joseph Piron wrote:
However, when I try to launch the script, I get the following error:

Traceback (most recent call last):
  File "boot_service.py", line 22, in <module>
  File "zipextimporter.pyc", line 82, in load_module
  File "tagLogger.pyc", line 7, in <module>
  File "zipextimporter.pyc", line 82, in load_module
  File "OpenOPC.pyc", line 40, in <module>
  File "win32com\client\gencache.pyc", line 649, in Rebuild

The problem is that the 'Rebuild' function in gencache.py is being called - but it shouldn't be.  It appears your OpenOPC.py is calling that function directly?

Have a look at http://www.py2exe.org/index.cgi/IncludingTypelibs for some other clues about using makepy/gencache with py2exe.

HTH,

Mark