0

I'm trying to build a project in exe through cx_Freeze. The project uses the xmldiff library, which does not want to work after assembly.

#setup.py
import sys, os
from cx_Freeze import setup, Executable

__version__ = "0.1"

include_files = []
excludes = ["tkinter"]
packages = ["os", "idna", "requests", "json", "base64", "encodings", 'asyncio', 'xmldiff', 'appdirs']
includes = ['atexit', 'numpy.core._methods', 'numpy.lib.format', 'appdirs', 'xmldiff']

setup(
    name = "Project",
    description='Project',
    version=__version__,
    options = {
        "build_exe": {
            'packages': packages,
            'include_files': include_files,
            'excludes': excludes,
            'include_msvcr': True,
            'includes': includes,
        }
    },
    executables = [Executable("designer.py", base="Win32GUI")]
)

Error

What could be the problem?

xmldiff package installed enter image description here

ioprst
  • 187
  • 16
  • So you are saying that your code is working before using `cx_Freeze`? – Eypros Feb 11 '19 at 08:49
  • @Eypros, yes, if I run through python.exe – ioprst Feb 11 '19 at 08:57
  • Do you run the freezing command `python.exe setup.py build` through the same python.exe? – jpeg Feb 11 '19 at 15:04
  • Have you tried to add `'pkg_resources'` to the `packages` list? And tried to remove the `includes` entries which are already present in `packages`? – jpeg Feb 11 '19 at 15:06
  • Which GUI library are you using? – jpeg Feb 11 '19 at 15:07
  • @jpeg, 1) "Do you run the freezing command python.exe setup.py build through the same python.exe?" - yes. 2) "Have you tried to add 'pkg_resources' to the packages list?" - yes. 3) "And tried to remove the includes entries which are already present in packages?" - no. 4) GUI - wxPython. – ioprst Feb 12 '19 at 04:38

0 Answers0