{"id":23696,"library":"extractcode-7z","title":"extractcode-7z","description":"A ScanCode path provider plugin that provides a prebuilt native sevenzip binary for archive extraction. Version 16.5.210531. Plugin is in maintenance mode, tied to ScanCode toolkit releases.","status":"maintenance","version":"16.5.210531","language":"python","source_language":"en","source_url":"https://github.com/nexB/scancode-plugins","tags":["scanning","extraction","7z","path-provider","plugin"],"install":[{"cmd":"pip install extractcode-7z","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"older import path used in ScanCode v2.x; changed with migration to plugincode","wrong":"from extractcode.sevenzip import SevenZipProvider","symbol":"SevenZipProvider","correct":"from extractcode_7z import SevenZipProvider"}],"quickstart":{"code":"from extractcode_7z import SevenZipProvider\nprovider = SevenZipProvider()\nprint(provider.get_sevenzip_path())","lang":"python","description":"Get the path to the bundled 7z binary."},"warnings":[{"fix":"Use extractcode (from scancode-toolkit) for actual extraction, or call the binary directly via SevenZipProvider.get_sevenzip_path().","message":"extractcode-7z is a path provider plugin; do not import it as a standalone extraction library. It only provides the binary path.","severity":"breaking","affected_versions":"all"},{"fix":"Consider using py7zr for pure-Python 7z support if you need active development.","message":"Project is in maintenance mode. No new features; only critical security updates.","severity":"deprecated","affected_versions":">=16.0"},{"fix":"Run `pip install extractcode-7z` without extras; pip selects the proper wheel automatically. On some systems, ensure 7z is not already in PATH to avoid confusion.","message":"Bundled binary is platform-specific. Install the correct wheel for your OS; otherwise import may fail.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install extractcode-7z` and ensure you are in the correct virtual environment.","cause":"Package not installed or wrong Python environment.","error":"ModuleNotFoundError: No module named 'extractcode_7z'"},{"fix":"Use `from extractcode_7z import SevenZipProvider` (note underscore). Check version: `pip show extractcode-7z` should be >=16.0.","cause":"Incorrect import path or outdated version.","error":"AttributeError: module 'extractcode_7z' has no attribute 'SevenZipProvider'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}