con py2exe me compiló bien
Código Python:
Ver original#setupPy2exe.py
from distutils.core import setup
import py2exe
setup(
windows = [
{
"script": "menu_libro_blanco.py"
}
],
)
con cx_Freeze hay que ser mas explícito
Código Python:
Ver original#setupCx_Freeze.py
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["random","time","Tkinter","modulepythong","os","sys","threading","time","imp","warnings"]}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "",
version = "0.1",
description = "",
options = {"build_exe": build_exe_options},
executables = [Executable("menu_libro_blanco.py", base=base)])
Y en ambos casos copié menu_libro_blanco.py en la misma carpeta que quedó el .exe, no es la solución mas elegante, pero a mí me funcionó