Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not including cx_Logging module with windows services causes KERNELBASE.dll errors #1274

Open
TechnicalPirate opened this issue Nov 3, 2021 · 0 comments

Comments

@TechnicalPirate
Copy link
Contributor

TechnicalPirate commented Nov 3, 2021

Describe the bug
Since cx_freeze-6.6 it appears that if you do not include cx_logging in your build options

options = {
    "build_exe": {
        "includes": ["ServiceHandler", "cx_Logging"],
        "excludes": ["tkinter"],
    }
}

You will encounter a silent failure when attempting to install the service via terminal.

If you inspect windows event viewer you will see a KERNELBASE.dll error at the time of the installation attempt

image

To Reproduce

  • Take the cx_Freeze service sample
  • Remove the cx_Logging include
  • Build the product
  • Install the product

Expected behavior
Either:

  1. No error :)
  2. A meaningful error informing the developer that cx_logging is a required option for includes

Desktop:

  • Platform information: Windows 10
  • OS architecture (e.g. amd64): amd64
  • cx_Freeze version [e.g. 6.6]: Reproduced in 6.6-6.8
  • Python version [e.g. 3.9]: Python 3.9.6

Additional context
Not sure if action is required here, i wanted to file this issue though so either this requirement can be moved internally to cx_freeze - or if no action is required, at least this issue should show up if others encounter + google this issue in future ( took a few hours to track this down! )

@TechnicalPirate TechnicalPirate changed the title Not including cx_Logging module with windows services causes KERNALBASE.dll errors Not including cx_Logging module with windows services causes KERNELBASE.dll errors Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant