Skip to content

inconsistent error message with drum push #555

Open
@ToonWeyens

Description

@ToonWeyens

Running !drum push --code-dir ./custom_model for my Mission 3 assignment errors out

2022-01-26 14:28:58,717 WARNING drum:  Looks like there is a problem. To get more output information try to run with: --verbose
Traceback (most recent call last):
  File "/Users/toon.weyens/.pyenv/versions/3.8.12/bin/drum", line 8, in <module>
    main()
  File "/Users/toon.weyens/.pyenv/versions/3.8.12/lib/python3.8/site-packages/datarobot_drum/drum/main.py", line 110, in main
    CMRunner(runtime).run()
  File "/Users/toon.weyens/.pyenv/versions/3.8.12/lib/python3.8/site-packages/datarobot_drum/drum/drum.py", line 83, in __init__
    self._resolve_target_type()
  File "/Users/toon.weyens/.pyenv/versions/3.8.12/lib/python3.8/site-packages/datarobot_drum/drum/drum.py", line 143, in _resolve_target_type
    raise DrumCommonException(
datarobot_drum.drum.exceptions.DrumCommonException: Target type is missing. It must be provided in --target-type argument, TARGET_TYPE env var or model config file.

Though in the drum push -h message, there is no mention of --target-type, I follow above message with !drum push --code-dir ./custom_model --target-type binary and get

drum: error: unrecognized arguments: --target-type binary

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