You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
possible bug in 4.3.0: stevedore.exception.NoMatches: No extensions found #320
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
Indeed, it sounds like you've found a regression. #317 was the change introduced for this release. I'll want to inspect what it is about that environment that violates the expectations of the change.
Activity
jaraco commentedon May 28, 2021
Indeed, it sounds like you've found a regression. #317 was the change introduced for this release. I'll want to inspect what it is about that environment that violates the expectations of the change.
jaraco commentedon May 28, 2021
The problem seems to be that the
normalized_namefor eggs isn't calculated properly:jaraco commentedon May 28, 2021
The assumption that the dist name is in the stem of the
_pathwas a mistake.Add a test to ensure the normalized name of an egg is reported correc…
maorfr commentedon May 31, 2021
thanks a lot for the quick action @jaraco! much appreciated.