Skip to content

Conversation

@boegel
Copy link
Member

@boegel boegel commented Nov 9, 2020

This fixes a TypeError that is (sometimes) raised when running --list-toolchains:

Traceback (most recent call last):
  File "/home/runner/work/easybuild-framework/easybuild-framework/easybuild/tools/options.py", line 1353, in parse_options
    eb_go = EasyBuildOptions(usage=usage, description=description, prog=\'eb\', envvar_prefix=CONFIG_ENV_VAR_PREFIX,
  File "/home/runner/work/easybuild-framework/easybuild-framework/easybuild/tools/options.py", line 242, in __init__
    super(EasyBuildOptions, self).__init__(*args, **kwargs)
  File "/home/runner/work/easybuild-framework/easybuild-framework/easybuild/base/generaloption.py", line 924, in __init__
    self.postprocess()
  File "/home/runner/work/easybuild-framework/easybuild-framework/easybuild/tools/options.py", line 856, in postprocess
    self._postprocess_list_avail()
  File "/home/runner/work/easybuild-framework/easybuild-framework/easybuild/tools/options.py", line 1099, in _postprocess_list_avail
    msg += list_toolchains(self.options.output_format)
  File "/home/runner/work/easybuild-framework/easybuild-framework/easybuild/tools/docs.py", line 730, in list_toolchains
    tclist = sorted(zip(all_tcs_names, all_tcs))
TypeError: \'<\' not supported between instances of \'type\' and \'type\'

fixes #3469

@boegel boegel added the bug fix label Nov 9, 2020
@boegel boegel added this to the 4.3.2 milestone Nov 9, 2020
@boegel boegel requested a review from bartoldeman November 9, 2020 17:36
Copy link
Contributor

@bartoldeman bartoldeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bartoldeman bartoldeman merged commit ccce45b into easybuilders:develop Nov 9, 2020
@boegel boegel deleted the fix_typerror_list_toolchains branch November 10, 2020 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eb --list-toolchains. Error parsing custom toolchains

2 participants