Menu

Python to Executable

Help
2016-03-15
2016-03-21
  • Jesus Rodriguez

    Jesus Rodriguez - 2016-03-15

    Hi
    I have been trying to convert my python applicaction that uses OpenOPC into executable but a cannot do it, I have followed different procedures but with no succes. If I run the python script it works very well but when I create the executable and run it gives the following error:

    C:\Python27\dist>test.exe
    Traceback (most recent call last):
    File "test.py", line 7, in <module>
    File "OpenOPC.pyc", line 40, in <module>

    File "win32com\client\gencache.pyc", line 649, in Rebuild
    File "win32com\client\gencache.pyc", line 65, in _SaveDicts
    File "win32com\client\gencache.pyc", line 141, in GetGeneratePath
    IOError: [Errno 2] No such file or directory: 'C:\Python27\dist\library.zip\
    win32com\gen_py\init.py'

    I'm using the following
    OpenOPC for Python 1.2.0
    Python version 2.7.9
    Using py2exe (py2exe-0.6.9.win32-py2.7.exe)

    I would appreciate some directions for this.

    Thanks

    Jesús

     
    • Dundo

      Dundo - 2016-03-21

      Hi!

      I've also tried and failed.

      I think it has something to do with pyro module...

       

Log in to post a comment.