Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in history item selection #1

Open
morj-uio opened this issue Jun 24, 2022 · 0 comments
Open

Error in history item selection #1

morj-uio opened this issue Jun 24, 2022 · 0 comments
Assignees

Comments

@morj-uio
Copy link
Collaborator

When selecting history item in proto test tool 3:

Traceback (most recent call last):
  File "/opt/conda/envs/proto2/lib/python3.7/site-packages/flask_mako.py", line 228, in _render
    rv = template.render(**context)
  File "/opt/conda/envs/proto2/lib/python3.7/site-packages/mako/template.py", line 473, in render
    return runtime._render(self, self.callable_, args, data)
  File "/opt/conda/envs/proto2/lib/python3.7/site-packages/mako/runtime.py", line 883, in _render
    **_kwargs_for_callable(callable_, data)
  File "/opt/conda/envs/proto2/lib/python3.7/site-packages/mako/runtime.py", line 920, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/opt/conda/envs/proto2/lib/python3.7/site-packages/mako/runtime.py", line 947, in _exec_template
    callable_(context, *args, **kwargs)
  File "root_base_mako", line 51, in render_body
  File "base_mako", line 51, in render_body
  File "generictool_mako", line 85, in render_body
  File "/opt/proto/lib/proto/tools/guitest/ProtoGuiTestTool3.py", line 501, in getOutputName
    historyName = extractNameFromDatasetInfo(choices.history)
  File "/opt/proto/lib/proto/CommonFunctions.py", line 187, in extractNameFromDatasetInfo
    return unquote(str(datasetInfo[-1])).decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

The history API does not provide dataset filenames, here one must call the datasets API for each item.

@morj-uio morj-uio self-assigned this Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant