google / turbinia

Automation and Scaling of Digital Forensics Tools
Apache License 2.0
749 stars 162 forks source link

[Bug]: turbinia-client throws AttributeError for get_evidence_types #1386

Closed wajihyassine closed 12 months ago

wajihyassine commented 1 year ago

What steps will reproduce the bug?

  1. When installing the latest turbinia-client
  2. Running any command will throw an error AttributeError: 'TurbiniaConfigurationApi' object has no attribute 'get_evidence_types'

What is the expected behavior?

No response

What do you see instead?

~$ turbinia-client config
2023-11-07 00:24:51,719 INFO turbinia - Using configuration instance name -> default with host http://127.0.0.1:8000
Traceback (most recent call last):
  File "/home/wyassine/dfenv/bin/turbinia-client", line 5, in <module>
    from turbinia_client.turbiniacli_tool import main
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/turbinia_client/turbiniacli_tool.py", line 108, in <module>
    main()
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/turbinia_client/turbiniacli_tool.py", line 101, in main
    cli.main()
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/click/core.py", line 1685, in invoke
    super().invoke(ctx)
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/turbinia_client/turbiniacli_tool.py", line 80, in cli
    ctx.obj.setup()
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/turbinia_client/turbiniacli.py", line 101, in setup
    self.evidence_mapping = self.get_evidence_arguments()
  File "/home/wyassine/dfenv/lib/python3.10/site-packages/turbinia_client/turbiniacli.py", line 172, in get_evidence_arguments
    api_response = api_instance.get_evidence_types()
AttributeError: 'TurbiniaConfigurationApi' object has no attribute 'get_evidence_types'

Additional information

turbinia-client version

❯ pip show turbinia-client
Name: turbinia-client
Version: 1.0.3
Summary: Turbinia API Client command-line tool.
Home-page: http://turbinia.plumbing/
Author: 
Author-email: 
License: Apache License, Version 2.0
Requires: click, turbinia-api-lib, google-auth-oauthlib
Required-by: 

turbinia-api-lib version

❯ pip3 show turbinia-api-lib
Name: turbinia_api_lib
Version: 1.0.2
Summary: Turbinia API Server
Home-page: https://github.com/google/turbinia
Author: OpenAPI Generator Community
Author-email: team@openapitools.org
License: Apache-2.0
Requires: aenum, urllib3, python-dateutil, pydantic
Required-by: turbinia-client