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

ModuleNotFoundError: No module named 'msilib' #2659

Open
glibg10b opened this issue Nov 3, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'msilib' #2659

glibg10b opened this issue Nov 3, 2024 · 1 comment
Milestone

Comments

@glibg10b
Copy link

glibg10b commented Nov 3, 2024

Prerequisite

  • Make sure no duplicated issue has already been reported. You should look for closed issues, too.
  • Make sure you are not asking us to help to solve your specific issue. GitHub issues are opened mainly for development purposes. If you want to ask someone to help to solve your problem, go to some community site like StackOverflow, etc.
  • Make sure your problem is not derived from packaging (e.g. Homebrew).

Describe the bug
Running cxfreeze main.py with Python 3.13 produces the following error because msilib has long been deprecated and has now been removed.

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Waldo\AppData\Local\Programs\Python\Python313\Scripts\cxfreeze.exe\__main__.py", line 4, in <module>
    from cx_Freeze.cli import main
  File "C:\Users\Waldo\AppData\Local\Programs\Python\Python313\Lib\site-packages\cx_Freeze\__init__.py", line 32, in <module>
    from cx_Freeze.command.bdist_msi import bdist_msi
  File "C:\Users\Waldo\AppData\Local\Programs\Python\Python313\Lib\site-packages\cx_Freeze\command\bdist_msi.py", line 31, in <module>
    from msilib import (  # pylint: disable=deprecated-module
    ...<15 lines>...
    )
ModuleNotFoundError: No module named 'msilib'

To Reproduce

  1. Install Python 3.13
  2. Run cxfreeze main.py where cx_freeze is installed and main.py is some Python file

Expected behavior
cxfreeze shouldn't depend on a deprecated module.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Platform information (e.g. Ubuntu Linux 22.04): Windows 11
  • OS architecture (e.g. amd64): amd64
  • cx_Freeze version [e.g. 6.11]: 7.2.4
  • Python version [e.g. 3.10]: 3.13

Additional context
Add any other context about the problem here.

@marcelotduarte
Copy link
Owner

Support for Python 3.13 in the next minor release (7.3.0).

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

2 participants