{"id":24454,"library":"python-msilib","title":"python-msilib","description":"A Python library to read and write Microsoft Installer (.msi) files. Current version 0.6.0, supports Python >=3.13 and is under active development on GitHub.","status":"active","version":"0.6.0","language":"python","source_language":"en","source_url":"https://github.com/marcelotduarte/python-msilib","tags":["msi","windows","installer","packaging"],"install":[{"cmd":"pip install python-msilib","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"The library provides a drop-in replacement for the standard library msilib module.","symbol":"msilib","correct":"import msilib"}],"quickstart":{"code":"import msilib\n\n# Create a new MSI database\nwith msilib.Create('example.msi', msilib.DefaultCab, msilib.UUID.Create()) as db:\n    print('MSI file created successfully')","lang":"python","description":"Create a simple MSI file using python-msilib."},"warnings":[{"fix":"Upgrade to Python 3.13 or later.","message":"Python 3.13+ only: This library requires Python 3.13 or newer. Older Python versions (3.12, 3.11) are not supported.","severity":"breaking","affected_versions":">=0.6.0"},{"fix":"Use 'import msilib' in your code.","message":"The package name on PyPI is 'python-msilib', but the import module is 'msilib'. This can cause confusion if you try to 'import python-msilib'.","severity":"gotcha","affected_versions":"all"},{"fix":"Check the release notes for changes in API behavior.","message":"Some APIs from the standard library 'msilib' may be deprecated or changed in newer Python versions. This package aims to maintain compatibility but may lag behind.","severity":"deprecated","affected_versions":"<0.6.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install python-msilib'. Note that this package provides the module on all platforms, not just Windows.","cause":"You have not installed the python-msilib package, or you are using a Python version that does not include the standard library msilib module (which is part of CPython on Windows only).","error":"ModuleNotFoundError: No module named 'msilib'"},{"fix":"Use 'from msilib import Cab' or check the current API documentation.","cause":"The 'Cab' class may have been renamed or moved. In older versions, the correct import may differ.","error":"ImportError: cannot import name 'Cab' from 'msilib'"},{"fix":"Use 'from msilib import Create' or call 'msilib.Create(...)' after installing the package.","cause":"The 'Create' function is not available in the standard library msilib; it is a custom addition in python-msilib.","error":"AttributeError: module 'msilib' has no attribute 'Create'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}