Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Stop experiment failed #1292

Closed
benchuang11046 opened this issue Jul 11, 2019 · 5 comments
Closed

Stop experiment failed #1292

benchuang11046 opened this issue Jul 11, 2019 · 5 comments
Labels
bug Something isn't working NNI_Usage user raised

Comments

@benchuang11046
Copy link

Short summary about the issue/question:

Cannot stop a experiment by nnictl.

Brief what process you are following:

$ nnictl stop dXjB58pq

The following is the error log.

Traceback (most recent call last):
�[0m  File "/usr/local/bin/nnictl", line 10, in <module>
�[0m    �[0msys.exit(parse_args())�[0m
�[0m  File "/usr/local/lib/python3.6/site-packages/nni_cmd/nnictl.py", line 215, in parse_args
�[0m    �[0margs.func(args)�[0m
�[0m  File "/usr/local/lib/python3.6/site-packages/nni_cmd/nnictl_utils.py", line 219, in stop_experiment
�[0m    �[0mexperiment_id_list = parse_ids(args)�[0m
�[0m  File "/usr/local/lib/python3.6/site-packages/nni_cmd/nnictl_utils.py", line 154, in parse_ids
�[0m    �[0melif args.all:�[0m
�[0mAttributeError�[0m: �[0m'Namespace' object has no attribute 'all'�[0m

It happened on macOS and docker python:3.6.8.
But it work good on nni 0.8.1.

How to reproduce it:

  1. Create a experiment using nnictl, the example is mnist
    https://github.com/microsoft/nni/tree/master/examples/trials/mnist
  2. Stop the experiment using nnictl and error happened.

nni Environment:

  • nni version: 0.9.1
  • nni mode(local|pai|remote): local and pai
  • OS: macos and ubuntu
  • python version: 3.6.6 and 3.6.8
  • is conda or virtualenv used?: conda
  • is running in docker?: local and docker

need to update document(yes/no):

Anything else we need to know:

@SunYanCN
Copy link

I have the same error

  • centos
  • nni version: 0.9.1

@rabbit008
Copy link
Contributor

Hey @SunYanCN, could you provide some context as follows:
nni mode(local|pai|remote):
python version:
dispatcher.log and nni_manager.log
task description
config,yml and search_space.json
Thank you~

@Crysple
Copy link
Contributor

Crysple commented Jul 12, 2019

Hi, thanks for reporting this. It is a known issue after v0.9 and we've submitted a PR #1290 to fix it.
Currently you could try nnictl stop to stop one experiment... Or you could modify your source code just as the PR did and re-install.

@QuanluZhang
Copy link
Contributor

add IT for nnictl stop

@SunYanCN
Copy link

Thank you for your efforts! I hope this tool is getting better and better! @Crysple

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working NNI_Usage user raised
Projects
None yet
Development

No branches or pull requests

7 participants