Skip to content

KeyError: 'with_binary_llvm' #552

@tanzfisch

Description

@tanzfisch

I was trying to integrate cling in to a project of mine but came across the following issue

python3 cpt.py --check-requirements
/home/martin/dev/Igor/vendor/cling/tools/packaging/cpt.py:2017: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
  DIST = distro.linux_distribution()[0]
/home/martin/dev/Igor/vendor/cling/tools/packaging/cpt.py:2018: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
  RELEASE = distro.linux_distribution()[2]
/home/martin/dev/Igor/vendor/cling/tools/packaging/cpt.py:2019: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.
  REV = distro.linux_distribution()[1]
Cling Packaging Tool (CPT)
Arguments vector: ['cpt.py', '--check-requirements']

╔══════════════════════════════════════════════════════════════════════════════╗
║ cling (x86_64)                               Mon, 30 Jun 2025 22:56:16 +1200 ║
╚══════════════════════════════════════════════════════════════════════════════╝
Thread Model: POSIX
Operating System: Linux
Distribution: Debian GNU/Linux
Release: bookworm
Revision: 12
Architecture: x86_64
Traceback (most recent call last):
  File "/home/martin/dev/Igor/vendor/cling/tools/packaging/cpt.py", line 2090, in <module>
    if args['with_binary_llvm'] and args['with_llvm_tar']:
       ~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'with_binary_llvm'

I am guessing args was not initialized? Sorry I don't know much about python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions