Registry / shiboken2

shiboken2

JSON →
library5.15.2.1pypypiunverified

Shiboken2 is the Python binding generator and helper module for PySide2 (Qt for Python, Qt5). This package provides the `shiboken2` runtime module used by PySide2 to manage C++ object ownership and lifetime. Current version: 5.15.2.1 (final PySide2 release). Maintenance-only status; no new releases expected as the project focuses on PySide6.

pip install shiboken2
INSTALL
IMPORT
SIG · SHIBOKEN2
S
shiboken2
pythonv5.15.2.1
Install
1.6s avg
Import
Disk
19MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.15.2.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Shiboken
from shiboken2 import Shiboken
import shiboken
The module is named 'shiboken2' on PyPI, but the import package is 'shiboken2'. Use the correct import to avoid ModuleNotFoundError.
getCppPointer
from shiboken2 import getCppPointer
from PySide2 import getCppPointer
Shiboken functions are not part of PySide2's public API; import explicitly from shiboken2.

Basic usage: import the Shiboken helper and get the C++ pointer of a Qt object.

from shiboken2 import Shiboken from PySide2.QtWidgets import QWidget widget = QWidget() print(Shiboken.getCppPointer(widget))
shiboken2 --version
Debug
Known issues
breakingshiboken2 5.15.2.1 is the final release for Python 3.10 support. Python 3.11 and above are not supported.
fix
Upgrade to PySide6 / shiboken6 for Python 3.11+ support.
affects: >=5.15.2.1
deprecatedshiboken2 is deprecated in favor of shiboken6. No new features or bug fixes will be released.
fix
Migrate to PySide6 and use shiboken6 for new projects.
affects: all
gotchashiboken2 cannot be imported directly without PySide2 installed; it is a runtime dependency of PySide2 and lacks standalone wheels.
fix
Install PySide2 (e.g., pip install PySide2) which pulls in the correct shiboken2 version.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'shiboken2'
shiboken2 is not installed or PySide2 is missing.
fix
Install PySide2: pip install PySide2
ImportError: cannot import name 'getCppPointer' from 'PySide2'
Trying to import shiboken functions from the wrong package.
fix
Use: from shiboken2 import getCppPointer
RuntimeError: shiboken2. Shiboken needs to be imported after PySide2
shiboken2 module imported before PySide2 initialises Qt.
fix
Always import shiboken2 after PySide2 (or any Qt module) has been imported in your application.
Upgrade
Version history
5.15.2.1latest on PyPI · released Jan 14, 2022
Audit
Dependencies
PySide2requiredShiboken2 is the runtime dependency for PySide2; they must be version-matched.
Agent activity
7 hits · last 30 days
node
6
Resources
shiboken2 — pip install shiboken2 · libregistry