Skip to content

%openad ds display collections for domain 'Business Insights' Fails with Error #2

Description

@PhillipDowney

%openad ds display collections for domain 'Business Insights'


ParseException Traceback (most recent call last)
File ~/r1q12025/openad-toolkit/openad/app/main.py:765, in RUNCMD.default(self, line)
762 # print("------------------------------")
763 # print(convert(inp))
764 # print("------------------------------")
--> 765 y = self.current_statement_defs.parseString(convert(inp), parseAll=True)
766 x = lang_parse(self, y)

File ~/ad-moe/lib/python3.11/site-packages/pyparsing/core.py:1141, in ParserElement.parse_string(self, instring, parse_all, parseAll)
1139 else:
1140 # catch and re-raise exception from here, clearing out pyparsing internal stack trace
-> 1141 raise exc.with_traceback(None)
1142 else:

ParseException: Expected end of text, found 'display' (at char 3), (line:1, col:4)

During handling of the above exception, another exception occurred:

TypeError Traceback (most recent call last)
Cell In[4], line 1
----> 1 get_ipython().run_line_magic('openad', "ds display collections for domain 'Business Insights'")

File ~/ad-moe/lib/python3.11/site-packages/IPython/core/interactiveshell.py:2432, in InteractiveShell.run_line_magic(self, magic_name, line, _stack_depth)
2430 kwargs['local_ns'] = self.get_local_scope(stack_depth)
2431 with self.builtin_trap:
-> 2432 result = fn(*args, **kwargs)
2434 # The code below prevents the output from being displayed
2435 # when using magics with decorator @output_can_be_silenced
2436 # when the last Python token in the expression is a ';'.
2437 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):

File ~/.ipython/profile_default/startup/openad_magic.py:66, in AD.openad(self, line, cell, local_ns)
64 pass
65 i += 1
---> 66 result = openad.app.main.api_remote(line, context_cache, api_variable)
68 if isinstance(result, DataFrame):
69 result = output_table(result, return_val=True)

File ~/r1q12025/openad-toolkit/openad/app/main.py:1084, in api_remote(inp, api_context, api_var_list)
1081 magic_prompt.postloop()
1082 readline.write_history_file(magic_prompt.histfile)
-> 1084 result = magic_prompt.default(inp)
1086 api_context["workspace"] = magic_prompt.settings["workspace"]
1087 api_context["toolkit"] = magic_prompt.settings["context"]

File ~/r1q12025/openad-toolkit/openad/app/main.py:886, in RUNCMD.default(self, line)
883 help_ref = inp[0 : error_col_grabber(error_descriptor)]
884 else:
885 # Scenario C
--> 886 show_suggestions = "No commands" not in do_help_output_C
887 multiple_suggestions = "Commands starting with" in do_help_output_C
889 # If there are still no suggestions, we loop backwards through
890 # the input string letter by letter until something pops up.

TypeError: argument of type 'Markdown' is not iterable

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions