EXCEPTION of type 'AttributeError' when using 'help' from openstack-cli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Pike |
Fix Released
|
High
|
Unassigned | ||
Queens |
Fix Released
|
High
|
Unassigned | ||
cliff |
Fix Released
|
Undecided
|
Corey Bryant | ||
python-cliff (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Artful |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned |
Bug Description
$ dpkg -S $(readlink -f `which openstack`)
python3-
$ openstack
(openstack) help network
EXCEPTION of type 'AttributeError' occurred with message: ''InteractiveApp' object has no attribute 'parsed''
To enable full traceback, run the following command: 'set debug true'
(openstack) set debug true
debug - was: False
now: True
(openstack) help network
Traceback (most recent call last):
File "/usr/lib/
stop = self.onecmd(
File "/usr/lib/
stop = func(statement)
File "/usr/lib/
self.
AttributeError: 'InteractiveApp' object has no attribute 'parsed'
EXCEPTION of type 'AttributeError' occurred with message: ''InteractiveApp' object has no attribute 'parsed''
To enable full traceback, run the following command: 'set debug true'
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python3-
ProcVersionSign
Uname: Linux 4.15.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Feb 26 10:49:15 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (949 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: python-
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in python-openstackclient (Ubuntu Bionic): | |
status: | Triaged → Fix Committed |
no longer affects: | python-openstackclient |
no longer affects: | python-openstackclient (Ubuntu) |
no longer affects: | python-openstackclient (Ubuntu Artful) |
no longer affects: | python-openstackclient (Ubuntu Bionic) |
Changed in python-cliff (Ubuntu Artful): | |
importance: | Undecided → High |
Changed in python-cliff (Ubuntu Bionic): | |
importance: | Undecided → High |
$ openstack python2. 7/dist- packages/ cmd2.py" , line 776, in onecmd_plus_hooks statement) python2. 7/dist- packages/ cmd2.py" , line 964, in onecmd python2. 7/dist- packages/ cliff/interacti ve.py", line 114, in do_help default( self.parsed( 'help ' + arg))
(openstack) set debug true
debug - was: False
now: True
(openstack) help network
Traceback (most recent call last):
File "/usr/lib/
stop = self.onecmd(
File "/usr/lib/
stop = func(statement)
File "/usr/lib/
self.
AttributeError: InteractiveApp instance has no attribute 'parsed'
EXCEPTION of type 'AttributeError' occurred with message: 'InteractiveApp instance has no attribute 'parsed''
It looks like upstream cmd2 moved the parsed method from class Cmd() to class ParserManager() in 0.7.3.
git clone https:/ /github. com/python- cmd2/cmd2. git
git checkout 0.7.2
git checkout 0.7.3