{"id":23464,"library":"cppyy-cling","title":"cppyy-cling","description":"Re-packaged Cling C++ interpreter, used as the JIT backend for cppyy. Provides the C++ runtime and interpreter for cppyy's automatic Python-C++ bindings. Version 6.32.8, released on 2025-05-26. Release cadence follows cppyy releases.","status":"active","version":"6.32.8","language":"python","source_language":"en","source_url":"https://github.com/wlav/cppyy-backend","tags":["cppyy","cling","c++","jit","interop"],"install":[{"cmd":"pip install cppyy-cling","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"cppyy-cling is the backend for cppyy; cppyy auto-detects it","package":"cppyy","optional":false}],"imports":[{"note":"cppyy-cling is not imported directly; it's a backend for cppyy","wrong":"import cppyy_backend","symbol":"cppyy","correct":"import cppyy"},{"note":"cppyy.gbl is a module, not a subpackage; use from cppyy import gbl","wrong":"import cppyy.gbl","symbol":"cppyy.gbl","correct":"from cppyy import gbl"}],"quickstart":{"code":"import cppyy\ncppyy.include('iostream')\ncppyy.gbl.std.cout << 'Hello from C++ via cppyy' << cppyy.gbl.std.endl","lang":"python","description":"Basic usage: import cppyy (which loads cppyy-cling backend), include a C++ header, and call C++ functions."},"warnings":[{"fix":"pip install cppyy-cling","message":"cppyy-cling is a separate package from cppyy. You must install cppyy-cling explicitly (or let cppyy install it as a dependency). If only cppyy is installed, the backend may be missing.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'import cppyy' and then use cppyy functions.","message":"Do not import cppyy_backend or cppyy_cling directly. The correct way to use the backend is through cppyy. cppyy auto-detects cppyy-cling.","severity":"gotcha","affected_versions":"all"},{"fix":"Use cppyy.cppdef('...') or pass -std=c++14 to cppyy.add_include_path via cppyy.load_library.","message":"In cppyy-cling 6.32.x, the default C++ standard may be C++17. Code relying on C++11 or C++14 features might behave differently. Explicitly set standard with cppyy.add_include_path or cling flags.","severity":"breaking","affected_versions":">=6.32.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install cppyy-cling: pip install cppyy-cling. Then use 'import cppyy'.","cause":"Attempting to import cppyy_backend instead of cppyy, or missing cppyy-cling installation.","error":"ModuleNotFoundError: No module named 'cppyy_backend'"},{"fix":"Run: pip install cppyy-cling. Ensure it's installed in the same Python environment.","cause":"cppyy-cling not installed or not found by cppyy.","error":"RuntimeError: cppyy backend not found. Please install cppyy-cling or set CPYY_BACKEND"},{"fix":"Use either 'from cppyy import gbl' or 'import cppyy; gbl = cppyy.gbl'.","cause":"Using 'from cppyy import gbl' incorrectly; correct is 'from cppyy import gbl' (if you write import cppyy.gbl it's wrong). But if you do from cppyy import gbl it works.","error":"ImportError: cannot import name 'gbl' from 'cppyy'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}