Skip to content

possible bug in 4.3.0: stevedore.exception.NoMatches: No extensions found #320

Description

@maorfr

Hello,

importlib-metadata is a dependency for several packages we use and we have encountered a problem with the installation of 4.3.0 together with the jenkins-job-builder package (version 2.10.1 fwiw).

Just to illustrate the issue:

$ docker run -it quay.io/app-sre/qontract-reconcile:013d67a /bin/sh
sh-4.4# jenkins-jobs --version
Traceback (most recent call last):
  File "/usr/local/bin/jenkins-jobs", line 33, in <module>
    sys.exit(load_entry_point('jenkins-job-builder==2.10.1', 'console_scripts', 'jenkins-jobs')())
  File "/usr/local/lib/python3.6/site-packages/jenkins_job_builder-2.10.1-py3.6.egg/jenkins_jobs/cli/entry.py", line 164, in main
    jjb = JenkinsJobs(argv)
  File "/usr/local/lib/python3.6/site-packages/jenkins_job_builder-2.10.1-py3.6.egg/jenkins_jobs/cli/entry.py", line 58, in __init__
    self.parser = create_parser()
  File "/usr/local/lib/python3.6/site-packages/jenkins_job_builder-2.10.1-py3.6.egg/jenkins_jobs/cli/parser.py", line 100, in create_parser
    extension_manager.map(parse_subcommand_args, subparser)
  File "/usr/local/lib/python3.6/site-packages/stevedore-3.3.0-py3.6.egg/stevedore/extension.py", line 291, in map
    raise NoMatches('No %s extensions found' % self.namespace)
stevedore.exception.NoMatches: No jjb.cli.subcommands extensions found

after pinning importlib-metadata to 4.2.0 in app-sre/qontract-reconcile#1589, the issue goes away:

$ docker run -it quay.io/app-sre/qontract-reconcile:4e86cce /bin/sh
sh-4.4# jenkins-jobs --version
Jenkins Job Builder version: 2.10.1

hope this helps!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions