{"id":23385,"library":"c2cciutils","title":"c2cciutils","description":"Common utilities for Camptocamp CI, version 1.7.5. Provides tools for CI/CD pipelines including package versioning, Docker image management, and security audits. Released on PyPI with monthly updates, supports Python 3.9+.","status":"active","version":"1.7.5","language":"python","source_language":"en","source_url":"https://github.com/camptocamp/c2cciutils","tags":["ci","utilities","camptocamp","versioning"],"install":[{"cmd":"pip install c2cciutils","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Used for accessing version utilities","symbol":"version","correct":"from c2cciutils import version"}],"quickstart":{"code":"from c2cciutils import version\nprint(version.get_project_version())","lang":"python","description":"Get the current project version using the version utility."},"warnings":[{"fix":"Replace any usage of pkg_resources with importlib.resources or the recommended alternative.","message":"In version 1.7.5, the dependency on pkg_resources was removed; any code relying on pkg_resources directly must be updated.","severity":"breaking","affected_versions":">=1.7.5"},{"fix":"Use from c2cciutils import version instead.","message":"Old import paths like from c2cciutils import version_git are deprecated; use the unified version module.","severity":"deprecated","affected_versions":">=1.6.0"},{"fix":"Ensure a c2cciutils configuration file (e.g., .c2cciutils.yaml) is present in the project root.","message":"The CLI command c2cciutils requires a configuration file; missing it leads to obscure errors.","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 c2cciutils or pip install --upgrade c2cciutils to install it.","cause":"The package is not installed or the virtual environment is not activated.","error":"ModuleNotFoundError: No module named 'c2cciutils'"},{"fix":"Use from c2cciutils import version and then version.get_project_version() without self.","cause":"Calling version.get_project_version as a method on an uninitialized class instead of a function.","error":"TypeError: get_project_version() missing 1 required positional argument: 'self'"},{"fix":"Create a .c2cciutils.yaml file in the project root or specify an alternative config path.","cause":"Running c2cciutils command without a configuration file.","error":"FileNotFoundError: [Errno 2] No such file or directory: '.c2cciutils.yaml'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}