Skip to content

CDA loader gives error #70

Description

@DanielTOsborne

shefParser parse --in test.shef --loader cda

shefParser --help --description doesn't include any additional help, so CDA loader documentation is unavailable.

Just trying something gives an options error:

l2cwpa44@coe-spkuwa04spk:~/dated/da/nws$ shefParser parse --in test.shef --loader cda
INFO: ----------------------------------------------------------------------
INFO: Program shefParser version <function version at 0xffffffff7e646700> starting up
INFO: ----------------------------------------------------------------------
WARNING:     Errors importing the following modules:
        dss_loader

INFO: CdaLoader v0.5 instatiated
CRITICAL: LoaderException: Empty options on CdaLoader.set_options()
Traceback (most recent call last):
  File "/wm/spk/l2cwpa44/.local/bin/shefParser", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/click/core.py", line 1485, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/click/core.py", line 1406, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/click/core.py", line 1873, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/click/core.py", line 1269, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/click/core.py", line 824, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/shef/shef_parser.py", line 5140, in run_parse
    parse(
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/shef/shef_parser.py", line 4768, in parse
    loader.set_options(loader_args)
  File "/wm/spk/l2cwpa44/.local/lib/python3.11/site-packages/shef/loaders/cda_loader.py", line 159, in set_options
    raise shared.LoaderException(
shef.loaders.shared.LoaderException: Empty options on CdaLoader.set_options()

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