{"id":1660,"library":"pyqt6-sip","title":"PyQt6-sip","description":"PyQt6-sip provides the runtime 'sip' extension module necessary for the PyQt6 framework. SIP is a crucial tool developed by Riverbank Computing Limited for automatically generating Python bindings for C and C++ libraries, originally created for PyQt. The pyqt6-sip package specifically contains the compiled 'sip' module that PyQt6 uses internally. It is actively maintained with frequent releases, often synchronized with PyQt6 and new Python version support. The current version is 13.11.1.","status":"active","version":"13.11.1","language":"en","source_language":"en","source_url":"https://github.com/Python-SIP/sip","tags":["Qt","GUI","bindings","C++","C","runtime","PyQt6","SIP"],"install":[{"cmd":"pip install pyqt6-sip","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Required Python version, varies by pyqt6-sip release. Current 13.11.1 requires >=3.10.","package":"python","optional":false},{"reason":"This package provides the SIP module specifically for PyQt6; typically used implicitly by PyQt6 applications.","package":"PyQt6","optional":true}],"imports":[{"note":"Importing 'sip' directly refers to the standalone SIP binding generator tool, not the runtime module provided for PyQt6. The PyQt6-specific SIP module is found within the PyQt6 namespace.","wrong":"import sip","symbol":"sip","correct":"from PyQt6 import sip"}],"quickstart":{"code":"from PyQt6 import sip\n\n# Accessing a sip attribute to demonstrate the module is loaded\nprint(f\"PyQt6.sip version string: {sip.SIP_VERSION_STR}\")\nprint(f\"PyQt6.sip API version: {sip.api_version}\")","lang":"python","description":"While pyqt6-sip is primarily a backend component for PyQt6, you can verify its presence and retrieve its version information by importing 'sip' from the PyQt6 package."},"warnings":[{"fix":"Ensure `pyqt6-sip` is installed in the same Python environment as `PyQt6`. Try uninstalling and reinstalling `pyqt6-sip`. When using virtual environments, activate the environment before installing.","message":"ModuleNotFoundError: No module named 'PyQt6.sip' errors are common. This often indicates an issue with the Python environment, virtual environment configuration, or incorrect installation paths where pyqt6-sip might be installed separately from other PyQt6 components.","severity":"gotcha","affected_versions":"All versions"},{"fix":"As a temporary workaround, consider using a stable Python version (e.g., Python 3.12 or earlier) or switching to PySide6 if you encounter this specific version incompatibility. Keep an eye on official PyQt6 and pyqt6-sip release notes for compatibility updates.","message":"PyQt6 6.7.1, when used with Python 3.13.0 (as of October 2024), experienced `ModuleNotFoundError: No module named 'PyQt6.sip'` errors. This points to potential compatibility issues with specific Python preview versions.","severity":"breaking","affected_versions":"PyQt6 6.7.1 with Python 3.13.0, potentially other future Python versions."},{"fix":"Always check the `Requires-Python` metadata on PyPI for the specific `pyqt6-sip` version you intend to install, or rely on `pip` to automatically select a compatible version for your Python environment.","message":"The `pyqt6-sip` package has a `Requires-Python` metadata that varies across its releases (e.g., >=3.7 for 13.5.0, >=3.8 for 13.8.0, >=3.10 for 13.11.1). Installing an incompatible version with your Python interpreter will lead to failures.","severity":"gotcha","affected_versions":"All versions, when combined with incompatible Python interpreters."},{"fix":"Avoid installing `pyqt6-sip` version 13.9.0. Upgrade to a later stable release (e.g., 13.9.1 or newer).","message":"Version 13.9.0 of `pyqt6-sip` was yanked from PyPI due to an 'Incorrect Requires-Python' dependency specification, indicating a critical metadata error that could lead to installation issues or runtime problems.","severity":"breaking","affected_versions":"13.9.0"}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}