Skip to content

New aboutcode-toolkit-3.4.0.pre1 transform option is missing --help-format  #380

Description

@DennisClark

I could not get the new aboutcode-toolkit-3.4.0.pre1 transform option to work on an existing inventory .csv file using an existing confg file, so I tried exploring the help to see what needed to be done, thinking it might be a config file problem.

I ran ./about transform -h and learned that there ought to be a --help-format option.

So I ran ./about transform --help-format and got a bunch of error messages. Please advise or fix.

(aboutcode-toolkit-3.4.0.pre1) dennis-clarks-macbook-pro:aboutcode-toolkit-3.4.0.pre1 dclark1330$ ./about transform -h
Usage: about transform [OPTIONS] LOCATION OUTPUT

  Transform the CSV file at LOCATION by applying renamings, filters and
  checks and write a new CSV to OUTPUT.

  LOCATION: Path to a CSV file.

  OUTPUT: Path to CSV inventory file to create.

Options:
  -c, --configuration FILE  Path to an optional YAML configuration file. See
                            --help-format for format help.
  --help-format             Show configuration file format help and exit.
  -q, --quiet               Do not print error or warning messages.
  --verbose                 Show all error and warning messages.
  -h, --help                Show this message and exit.
(aboutcode-toolkit-3.4.0.pre1) dennis-clarks-macbook-pro:aboutcode-toolkit-3.4.0.pre1 dclark1330$ ./about transform --help-format
Traceback (most recent call last):
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/bin/about", line 11, in <module>
    load_entry_point('aboutcode-toolkit', 'console_scripts', 'about')()
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/lib/python3.6/site-packages/click/core.py", line 1064, in invoke
    sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/lib/python3.6/site-packages/click/core.py", line 621, in make_context
    self.parse_args(ctx, args)
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/lib/python3.6/site-packages/click/core.py", line 880, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/lib/python3.6/site-packages/click/core.py", line 1404, in handle_parse_result
    self.callback, ctx, self, value)
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/lib/python3.6/site-packages/click/core.py", line 78, in invoke_param_callback
    return callback(ctx, param, value)
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/src/attributecode/cmd.py", line 399, in print_config_help
    from attributecode.transform import tranformer_config_help
  File "/Users/dclark1330/aboutcode-toolkit-3.4.0.pre1/src/attributecode/transform.py", line 24, in <module>
    import attr
ModuleNotFoundError: No module named 'attr'
(aboutcode-toolkit-3.4.0.pre1) dennis-clarks-macbook-pro:aboutcode-toolkit-3.4.0.pre1 dclark1330$ 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions