We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CVAT CLI create task argument "project" should be "project_id". https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/definition.py#L116
Argument "project" is parsed by the argument parser as project. The CLI.task_create keyword argument is expecting project_id instead. Since the project ID value is not parsed, the project_id data in the POST request https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/core.py#L45 is always None, and the server was giving status code 400 response.
project
CLI.task_create
project_id
None
Replace CVAT CLI create task argument "project" to "project_id" in the definition.py. https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/definition.py#L116 I tested this and the create task succeed.
definition.py
some_video.mov
python3 cli.py --auth admin:password create --project_id 4 my_task share /data/some_video.mov
Creating new task from share data source by only specifying project ID. The project is already created before with some label definition.
git log -1
docker version
The text was updated successfully, but these errors were encountered:
@ActiveChooN
Could you please take a look at the issue?
Sorry, something went wrong.
@bsekachev
Sure.
ActiveChooN
Successfully merging a pull request may close this issue.
My actions before raising this issue
Expected Behaviour
CVAT CLI create task argument "project" should be "project_id".
https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/definition.py#L116
Current Behaviour
Argument "project" is parsed by the argument parser as
project
. TheCLI.task_create
keyword argument is expectingproject_id
instead. Since the project ID value is not parsed, theproject_id
data in the POST request https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/core.py#L45 is alwaysNone
, and the server was giving status code 400 response.Possible Solution
Replace CVAT CLI create task argument "project" to "project_id" in the
definition.py
.https://github.com/openvinotoolkit/cvat/blob/1ea3334b2febb41458add5e9a53d673d7b963f4b/utils/cli/core/definition.py#L116
I tested this and the create task succeed.
Steps to Reproduce (for bugs)
some_video.mov
into shared data.python3 cli.py --auth admin:password create --project_id 4 my_task share /data/some_video.mov
Context
Creating new task from share data source by only specifying project ID. The project is already created before with some label definition.
Your Environment
git log -1
): 315c9ccdocker version
(e.g. Docker 17.0.05): 19.03.13The text was updated successfully, but these errors were encountered: