thoughtspot / thoughtspot/cs_tools
CTX Error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
First Stop
- I have read and agreed to the ThoughtSpot LICENSE.
- I understand that if I have a critical issue with ThoughtSpot, I should reach out to my designated Account Executive and Customer Success Manager instead of
cs_tools.
Platform Configuration
I'm not sure what to include here.
Description
I was attempting to use CS Tools and received an error. The application recommended that I report it. I can't seem to run any commands, because I keep getting an error (it changes). I get the error below when running "cs_tools --help".
TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'
Considering adding a log file.
C:\Users\WilsonTaRan(AvisonYo>cs_tools logs report
Traceback (most recent call last):
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\cs_tools\cli\commands\main.py", line 77, in run
return_code = app(standalone_mode=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\typer\main.py", line 326, in call
raise e
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\typer\main.py", line 309, in call
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 1442, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\typer\core.py", line 723, in main
return _main(
^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\typer\core.py", line 193, in _main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 1828, in invoke
sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 1186, in make_context
self.parse_args(ctx, args)
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 1197, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 2416, in handle_parse_result
value = self.process_value(ctx, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 2352, in process_value
raise MissingParameter(ctx=ctx, param=self)
click.exceptions.MissingParameter: Missing parameter: save_path
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Scripts\cs_tools.exe_main.py", line 10, in
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\cs_tools\cli\commands\main.py", line 86, in run
log.error(f"{e.format_message()}")
^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\exceptions.py", line 164, in format_message
param_hint = self.param.get_error_hint(self.ctx) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\WilsonTaRan(AvisonYo\AppData\Roaming\cs_tools.cs_tools\Lib\site-packages\click\core.py", line 3108, in get_error_hint
return f"'{self.make_metavar(ctx)}'"
^^^^^^^^^^^^^^^^^^^^^^
TypeError: TyperArgument.make_metavar() takes 1 positional argument but 2 were given
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cs_tools/cli/commands/main.py, especially the run entry point shown in the traceback, and reproduce the failure with cs_tools --help. Compare the Typer and Click traceback paths; done means the command runs without the make_metavar TypeError and reports missing parameters normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100