-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
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
stestr run doesn't work from the shell #145
Comments
In my local environment, the run command works from the stestr shell(interactive mode) like below.
But yeah, I think that conflict should be happened. |
Hmm, I only tried running 'run' by itself, without any arguments and I definitely got an error with that. |
so, I also did it, and it works.. I don't know why.. But I think there is something wrong with the shell mode, anyway.
|
hmm, now it's working for me too. I could have sworn it was failing on me before. I do get an error running help bare now (which definitely wasn't the case before because that's how I fond the conflict):
|
heh, same here :-p |
It seems something has been changed in cmd2 0.8.0. When I install cmd2 0.7.9, this bug is showed up. And when I use 0.8.0, the behavior is like the above..
|
Oh, https://github.com/python-cmd2/cmd2/blob/master/CHANGELOG.md#080-february-1-2018
But
|
OK, I'll push a patch for bumping up the cmd2 version to keep the consistent behavior. |
I pushed the patch for the requirements project https://review.openstack.org/548209 |
The patch was merged already. run command should work now. load doesn't yet though. |
@masayukig do we need to bump the cliff minimum version or anything to ensure this is in a good state? |
@mtreinish yeah, I think so. But we can't do it yet because the |
@masayukig is there any update on this. I'm planning to push a 2.4.0 release soon and getting a fix in for this before that would be great. |
In my stestr env, the cmd2 version is already >=0.8.0 which doesn't have
However, in my py37 env, there's an issue like this..
I changed the cmd2 version to 0.8.9, then there's no problem of 'stestr help` like this. So, I think there is something between 0.8.9 and 0.9.12.
|
Should we bump the minimum cliff version to make sure we pull in a new enough cmd2 version? |
I don't think we should do it because the shell mode doesn't work completely at the latest cliff(cmd2) version now.. :( Does it work in your environment? |
So, I think we probably should cap the version like as openstack for now.. |
I can't cap the cmd2 version by tox. I actually have no idea for this behavior..
|
I think it's because you're using python3. Looking at the requirements for cliff, it only caps <0.9.0 on python2: As for why your constraints file didn't work it looks like you have a typo there, it should be |
tl;dr
yeah, I see. So, I tried to use
Oh, really? I copied and pasted the openstack's one.
And it works with the command line like following but not with tox like the above..
|
When trying to us the run command from inside the stestr shell you're not able to. This is due to cmd2 (which is what cliff uses for the interactive shell) having a builtin command run defined. This conflicts with the run command stestr defines, and the cmd2 builtin takes precedence. We'll have to find some way to override that cmd2 builtin to make this work.
The text was updated successfully, but these errors were encountered: