Create an executable with ptyhon cx_freeze

3

I'm creating an executable with python using the cx_freeze library, but I have a problem, when I run the setup.py to create the .exe this throws me an error asking me to close Python 2.7:

  Firma con problemas:
  Nombre del evento de problema:    APPCRASH
  Nombre de la aplicación:  python.exe
  Versión de la aplicación: 0.0.0.0
  Marca de tiempo de la aplicación: 56634a05
  Nombre del módulo con errores:    ntdll.dll

In the error that is displayed in a pop-up from cx_freeze :

  cx_Freeze Fatal Error

  cannot get zipimporter instance 

I am not finding the solution, since in many forums they say that it may be an OS update problem - Windows 7- (drivers or drivers).

At the moment I do not put the script of setup.py to not confuse and go around the branches.

    
asked by Nahuel Jakobson 31.03.2016 в 14:24
source

1 answer

2

The solution was in something so simple that by reading quietly the data book of the library the problem would not have appeared.

It turns out he was including the bookstores in:

includes = ["kinterbasdb","csv", "operator","MySQLdb"]

And not in:

packages = ["kinterbasdb","MySQLdb"]
    
answered by 01.04.2016 / 14:16
source