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

show.problems error #99

Open
Ally-R opened this issue Aug 25, 2022 · 3 comments
Open

show.problems error #99

Ally-R opened this issue Aug 25, 2022 · 3 comments

Comments

@Ally-R
Copy link

Ally-R commented Aug 25, 2022

Python SDK: show.problems is erroring with this message:

Traceback (most recent call last):
  File "run-tests.py", line 187, in <module>
    res = run_tests(database, engine, command, dataset, args.verbose, start_time)
  File "run-tests.py", line 129, in run_tests
    show.problems(tst_res) # Print errors
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/railib/show.py", line 83, in problems
    problems = rsp.get("problems", None)
AttributeError: 'list' object has no attribute 'get'
@larf311
Copy link

larf311 commented Aug 26, 2022

That function appears to expect a dictionary and instead it's being given a list. Where does tst_res come from?

@Ally-R
Copy link
Author

Ally-R commented Sep 6, 2022

tst_res is just the result of an exec call. This used to be a query call, and show.problems worked on that. It broke when I tried to update to the latest SDK version, I think because the output type changed from dict to list, and it seems show.problems hasn't been updated?
Here's the full definition: tst_res = api.exec(ctx, database, engine, command, readonly=True)

@billscheidel-rai
Copy link

Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-6611.

This link is only accessible to employees of RelationalAI.

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

No branches or pull requests

4 participants