Error using CX_FREEZE with Tkinter application

0

I'm creating a simple tool that makes use of libraries like tkinter, numpy, matplotlib, etc ... and I have problems when packing everything in an EXE with Cx_freeze I leave my setup.py I use to package it. When I do, I generate the EXE without apparent problems but when I run the window opens and closes instantly, if I do it from the console it throws me the following error:

Intel MKL FATAL ERROR: Can not load mkl_intel_thread.dll.

setup.py

import os
from cx_Freeze import setup, Executable

os.environ['TCL_LIBRARY'] = "C:\Users\Alfredo\Anaconda3\tcl\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\Users\Alfredo\Anaconda3\tcl\tk8.6"

buildOptions = dict(
    packages = ['events', 'pandas', 'datetime','matplotlib'], #numpy
    excludes = [],
    include_files=['tcl86t.lib', 'tk86t.lib', 'images', 'Usuarios.xlsx']
)

import sys
base = 'Win32GUI' if sys.platform=='win32' else None

executables = [
    Executable('main.py', icon = "images/icon.ico") #base=base
]

setup(name='editor',
      version = '1.0',
      description = '',
      options = dict(build_exe = buildOptions),
      executables = executables)
    
asked by Alfredo Lopez Rodes 17.07.2018 в 09:41
source

0 answers