tox -edocs Fails with AttributeError: module 'cmd' has no attribute 'Cmd'

Bug #1781860 reported by yatin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Low
zhurong

Bug Description

tox -edocs is failing with AttributeError: module 'cmd' has no attribute 'Cmd'.
Possibly happening after:- https://review.openstack.org/#/c/581300

Reproduction steps:-
git clone https://github.com/openstack/murano-agent
tox -edocs

Actual Output:-
docs create: /home/ykarel/work/DLRN/dlrn-venv/DLRN/data/openstack-murano-agent/.tox/docs
docs installdeps: -r/home/ykarel/work/DLRN/dlrn-venv/DLRN/data/openstack-murano-agent/requirements.txt, -r/home/ykarel/work/DLRN/dlrn-venv/DLRN/data/openstack-murano-agent/test-requirements.txt
docs develop-inst: /home/ykarel/work/DLRN/dlrn-venv/DLRN/data/openstack-murano-agent
docs installed: alabaster==0.7.11,amqp==2.3.2,anyjson==0.3.3,appdirs==1.4.3,asn1crypto==0.24.0,Babel==2.6.0,certifi==2018.4.16,cffi==1.11.5,chardet==3.0.4,cliff==2.13.0,cmd2==0.9.3,colorama==0.3.9,coverage==4.5.1,cryptography==2.2.2,debtcollector==1.19.0,decorator==4.3.0,deprecation==2.0.5,docutils==0.14,dogpile.cache==0.6.6,dulwich==0.19.5,enum-compat==0.0.2,eventlet==0.20.0,extras==1.0.0,fasteners==0.14.1,fixtures==3.0.0,flake8==2.5.5,future==0.16.0,gitdb2==2.0.3,GitPython==2.1.10,greenlet==0.4.13,hacking==0.12.0,idna==2.7,imagesize==1.0.0,iso8601==0.1.12,Jinja2==2.10,jmespath==0.9.3,jsonpatch==1.23,jsonpointer==2.0,keystoneauth1==3.9.0,kombu==4.2.1,linecache2==1.0.0,MarkupSafe==1.0,mccabe==0.2.1,mock==2.0.0,monotonic==1.5,mox3==0.25.0,msgpack==0.5.6,munch==2.3.2,-e git://git.openstack.org/openstack/murano-agent@08fda6ea42bf355bc087bf99883b588e80952d37#egg=murano_agent,netaddr==0.7.19,netifaces==0.10.7,openstackdocstheme==1.21.0,openstacksdk==0.16.0,os-client-config==1.31.2,os-service-types==1.2.0,oslo.concurrency==3.27.0,oslo.config==6.3.0,oslo.context==2.21.0,oslo.i18n==3.20.0,oslo.log==3.39.0,oslo.serialization==2.27.0,oslo.service==1.31.2,oslo.utils==3.36.3,oslotest==3.6.0,packaging==17.1,Paste==2.0.3,PasteDeploy==1.5.2,pbr==4.1.0,pep8==1.5.7,prettytable==0.7.2,pycparser==2.18,pyflakes==0.8.1,Pygments==2.2.0,pyinotify==0.9.6,pyparsing==2.2.0,pyperclip==1.6.2,python-dateutil==2.7.3,python-mimeparse==1.6.0,python-subunit==1.3.0,pytz==2018.5,PyYAML==3.13,reno==2.9.2,repoze.lru==0.7,requests==2.19.1,requestsexceptions==1.4.0,rfc3986==1.1.0,Routes==2.4.1,semantic-version==2.6.0,six==1.11.0,smmap2==2.0.3,snowballstemmer==1.2.1,Sphinx==1.7.5,sphinxcontrib-websupport==1.1.0,stestr==2.1.0,stevedore==1.28.0,testtools==2.3.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.23,vine==1.1.4,voluptuous==0.11.1,wcwidth==0.1.7,WebOb==1.8.2,wrapt==1.10.11
docs runtests: PYTHONHASHSEED='4151956913'
docs runtests: commands[0] | python setup.py build_sphinx -b html
running build_sphinx
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.0s)
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.0s)
Running Sphinx v1.7.5

Exception occurred:
  File "/usr/lib64/python3.6/pdb.py", line 136, in <module>
    class Pdb(bdb.Bdb, cmd.Cmd):
AttributeError: module 'cmd' has no attribute 'Cmd'
The full traceback has been saved in /tmp/sphinx-err-gg60gkw_.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
ERROR: InvocationError: '/home/ykarel/work/DLRN/dlrn-venv/DLRN/data/openstack-murano-agent/.tox/docs/bin/python setup.py build_sphinx -b html'
____________________________________________________________________ summary _____________________________________________________________________
ERROR: docs: commands failed

Expected Output:-
tox -edocs should succeed

When testrepository is installed in venv, it's not seen.
source .tox/docs/bin/activate
pip install testrepository
tox -edocs

yatin (yatinkarel)
description: updated
Praveen N (praveenn)
Changed in murano:
assignee: nobody → Praveen N (praveenn)
zhurong (zhu-rong)
Changed in murano:
assignee: Praveen N (praveenn) → zhurong (zhu-rong)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-agent (master)

Fix proposed to branch: master
Review: https://review.openstack.org/586435

Changed in murano:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-agent (master)

Reviewed: https://review.openstack.org/586435
Committed: https://git.openstack.org/cgit/openstack/murano-agent/commit/?id=47559e98c5565349bf8768262ef91a534cc5e991
Submitter: Zuul
Branch: master

commit 47559e98c5565349bf8768262ef91a534cc5e991
Author: zhurong <email address hidden>
Date: Fri Jul 27 12:01:12 2018 +0800

    Fix murano agent docs generate error

    Change-Id: I54f547dcb9b8083296e6d7c035ab4ae37103a97e
    Closes-Bug: #1781860

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-agent (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/589141

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-agent (stable/rocky)

Reviewed: https://review.openstack.org/589141
Committed: https://git.openstack.org/cgit/openstack/murano-agent/commit/?id=54456b9e2fb171379bc9feb51bd65e5631338c01
Submitter: Zuul
Branch: stable/rocky

commit 54456b9e2fb171379bc9feb51bd65e5631338c01
Author: zhurong <email address hidden>
Date: Fri Jul 27 12:01:12 2018 +0800

    Fix murano agent docs generate error

    Change-Id: I54f547dcb9b8083296e6d7c035ab4ae37103a97e
    Closes-Bug: #1781860
    (cherry picked from commit 47559e98c5565349bf8768262ef91a534cc5e991)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano-agent 3.6.0

This issue was fixed in the openstack/murano-agent 3.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano-agent rocky-eol

This issue was fixed in the openstack/murano-agent rocky-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.