{"id":24338,"library":"pyinstrument-cext","title":"PyInstrument C Extension","description":"A CPython extension that supports pyinstrument by providing a C-level hook for profiling. Version 0.2.4 is the latest release. The project is in maintenance mode; it is a dependency of pyinstrument and not typically used directly.","status":"maintenance","version":"0.2.4","language":"python","source_language":"en","source_url":"https://github.com/joerick/pyinstrument_cext","tags":["profiling","c-extension","pyinstrument"],"install":[{"cmd":"pip install pyinstrument-cext","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"note":"The module is typically imported internally by pyinstrument. Direct import is not recommended.","symbol":"_cext","correct":"import pyinstrument_cext._cext"}],"quickstart":{"code":"import pyinstrument_cext\n# The extension is loaded automatically by pyinstrument, not used directly.","lang":"python","description":"The extension is automatically used by pyinstrument when available. No user-facing API."},"warnings":[{"fix":"Install with pip; if compilation fails, ensure you have a C compiler (e.g., 'build-essential' on Linux, Xcode on macOS, or Microsoft C++ Build Tools on Windows).","message":"This package is a C extension and must be compiled during installation. If no pre-built wheel is available, a C compiler is required.","severity":"gotcha","affected_versions":"all"},{"fix":"Use pyinstrument for profiling. The extension is automatically loaded.","message":"Do not import pyinstrument_cext directly in user code. It is an internal dependency of pyinstrument and its API may change without notice.","severity":"gotcha","affected_versions":"all"},{"fix":"Check pyinstrument release notes for any migration to alternative implementations.","message":"The project appears to be in maintenance mode with no recent updates. Future versions of pyinstrument may drop this dependency.","severity":"deprecated","affected_versions":"0.2.4 and earlier"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install python3-dev or python3-devel package (e.g., 'sudo apt-get install python3-dev' on Debian/Ubuntu).","cause":"Missing Python headers or compilation dependencies.","error":"error: command 'x86_64-linux-gnu-gcc' failed with exit status 1"},{"fix":"Reinstall with verbose output: 'pip install --no-cache-dir -v pyinstrument-cext'. Check for compiler errors.","cause":"The C extension failed to build or was not installed correctly.","error":"ImportError: No module named pyinstrument_cext._cext"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}