http://bugzilla.opensuse.org/show_bug.cgi?id=1043502 Bug ID: 1043502 Summary: Error "NameError: global name 'getopt' is not defined" in Mercurial after applying Leap 42.2 Update-Test patch 6851 ("Security update for mercurial", brings Mercurial version from 3.8.3-1.5 to 3.8.3-2.3.1) Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: x86-64 OS: openSUSE 42.2 Status: NEW Severity: Major Priority: P5 - None Component: Maintenance Assignee: bnc-team-screening@forge.provo.novell.com Reporter: antoine.mechelynck@gmail.com QA Contact: qa-bugs@suse.de Found By: Community User Blocker: --- See below a few examples of "good" and "bad" results. The comments after # at the end of command lines are added here for your facility. (The first # is from the bash prompt.) N.B. The hg glog command is supposed to be aliased to hg log -G but the results are different. The graphlog extension is supposed to be "deprecated, but supported for backwards compatibility". The --version option is mentioned in the hg manpage. IIUC, my python interpreter is at versions 2.7.13 and 3.4.6; see the full list of Python package names and versions at bottom. linux-2iyu:~/.build/mozilla/comm-aurora # hg glog -l 5 # bad ** unknown exception encountered, please report by visiting ** https://mercurial-scm.org/wiki/BugTracker ** Python 2.7.13 (default, Mar 22 2017, 12:31:17) [GCC] ** Mercurial Distributed SCM (version 3.8.3) ** Extensions loaded: Traceback (most recent call last): File "/usr/bin/hg", line 43, in <module> mercurial.dispatch.run() File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 59, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 125, in dispatch ret = _runcatch(req) File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 161, in _runcatch IndexError, getopt.GetoptError): NameError: global name 'getopt' is not defined linux-2iyu:~/.build/mozilla/comm-aurora # hg log -Gl 5 # good, displays via less linux-2iyu:~/.build/mozilla/comm-aurora # hg --version # bad ** unknown exception encountered, please report by visiting ** https://mercurial-scm.org/wiki/BugTracker ** Python 2.7.13 (default, Mar 22 2017, 12:31:17) [GCC] ** Mercurial Distributed SCM (version 3.8.3) ** Extensions loaded: Traceback (most recent call last): File "/usr/bin/hg", line 43, in <module> mercurial.dispatch.run() File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 59, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 125, in dispatch ret = _runcatch(req) File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 161, in _runcatch IndexError, getopt.GetoptError): NameError: global name 'getopt' is not defined linux-2iyu:~/.build/mozilla/comm-aurora # hg version # good Mercurial Distributed SCM (version 3.8.3) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2016 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Enabled extensions: churn internal color internal fetch internal graphlog internal strip internal mq internal pager internal linux-2iyu:~ # rpm -qa|grep ^python python-numpy-1.8.0-4.17.x86_64 python-cryptography-1.3.1-2.2.x86_64 python-tk-2.7.13-25.3.1.x86_64 python-pyOpenSSL-16.0.0-1.1.noarch python-gobject-3.20.1-3.2.x86_64 python-xlib-0.14-111.3.x86_64 python-cffi-1.5.2-1.4.x86_64 python-kde4-knewstuff-4.14.3-3.46.x86_64 python-pyudev-0.16.1-13.3.noarch python3-gobject-cairo-3.20.1-3.2.x86_64 python-kde4-khtml-4.14.3-3.46.x86_64 python-liblarch_gtk-2.1.0-8.1.noarch python-xdg-0.25-12.2.noarch python3-setuptools-18.3.2-2.4.noarch python-kde4-4.14.3-3.46.x86_64 python3-apparmor-2.10.2-12.3.1.x86_64 python-keyring-9.3.1-1.1.noarch python-paramiko-2.0.2-1.1.noarch python-SecretStorage-2.3.1-1.1.noarch python3-base-32bit-3.4.6-10.3.1.x86_64 python-liblarch-2.1.0-8.1.noarch python-xml-2.7.13-25.3.1.x86_64 python-beautifulsoup-3.2.1-11.1.noarch python3-PyYAML-3.11-7.4.x86_64 python-apsw-3.7.17_r1-6.2.x86_64 python-idna-2.0-3.1.noarch python-pycurl-7.19.0-4.5.x86_64 python-kde4-doc-4.14.3-3.46.x86_64 python-lxml-3.6.1-1.2.x86_64 python3-32bit-3.4.6-10.3.1.x86_64 python-pip-7.1.2-2.4.noarch python-solv-0.6.26-5.3.1.x86_64 python-2.7.13-25.3.1.x86_64 python-dnspython-1.12.0-3.2.noarch python-pytz-2015.2-3.2.noarch python-ipaddress-1.0.16-1.1.noarch python3-pycurl-7.19.5.1-3.4.x86_64 python-Pygments-2.1.3-11.1.noarch python-kde4-akonadi-4.14.3-3.46.x86_64 python3-base-3.4.6-10.3.1.x86_64 python-mechanize-0.2.5-18.2.noarch python-pycparser-2.10-6.2.noarch python-smbc-1.0.13-16.2.x86_64 python3-gobject-Gdk-3.20.1-3.2.x86_64 python-devel-2.7.13-25.3.1.x86_64 python-kdebase4-4.11.22-3.24.x86_64 python-boto-2.38.0-6.2.noarch python-enum34-1.1.3-4.3.1.noarch python-atspi-2.20.2-1.4.noarch python-Pillow-2.9.0-6.4.x86_64 python3-devel-3.4.6-10.3.1.x86_64 python-pycrypto-2.6.1-7.1.x86_64 python-netifaces-0.10.4-8.3.x86_64 python-CherryPy-3.6.0-4.2.noarch python-qt4-4.11.4-3.35.x86_64 python-setuptools-18.0.1-4.1.noarch python3-bottle-0.12.8-4.2.noarch python-bottle-0.12.7-6.3.noarch python3-smbc-1.0.15.4-4.3.x86_64 python-ClientForm-0.2.10-6.2.noarch python-simplejson-3.3.1-4.3.x86_64 python-doc-2.7.13-25.3.1.noarch python-cssselect-0.9.1-6.3.noarch python3-py-1.4.30-3.2.noarch python-configobj-5.0.6-4.1.noarch python-kde4-plasma-4.14.3-3.46.x86_64 python-base-32bit-2.7.13-25.3.1.x86_64 python3-brlapi-5.2-3.48.x86_64 python-ecdsa-0.13-4.3.noarch python3-pip-7.1.2-5.3.noarch python-gobject2-2.28.6-27.5.x86_64 python-psutil-3.2.1-2.2.x86_64 python-pyasn1-0.1.9-11.3.1.noarch python3-gobject-3.20.1-3.2.x86_64 python-odfpy-0.9.6-8.1.noarch python-base-2.7.13-25.3.1.x86_64 python-gobject-Gdk-3.20.1-3.2.x86_64 python-gtk-2.24.0-16.6.x86_64 python-kde4-phonon-4.14.3-3.46.x86_64 python-32bit-2.7.13-25.3.1.x86_64 python-cairo-1.10.0-16.3.x86_64 python-gstreamer-0_10-0.10.22-14.4.x86_64 python-httplib2-0.9.1-3.1.noarch python3-doc-3.4.6-10.3.1.noarch python3-requests-2.7.0-6.1.noarch python-Babel-2.3.4-1.1.noarch python3-simplejson-3.8.0-5.18.x86_64 python-sip-4.16.9-5.5.x86_64 python-dateutil-2.4.2-15.1.noarch python-six-1.9.0-6.2.noarch python3-cups-1.9.72-4.2.x86_64 python-Genshi-0.7-4.4.x86_64 python3-cupshelpers-1.5.7-7.1.noarch python3-3.4.6-10.3.1.x86_64 python-lockfile-0.10.2-3.1.noarch python3-louis-2.6.4-2.1.x86_64 python3-cairo-1.10.1~git20121222.5a45b0b-2.2.x86_64 python-curses-2.7.13-25.3.1.x86_64 python3-coverage-3.7.1-4.4.x86_64 python-libxml2-2.9.4-5.3.1.x86_64 python-gobject-cairo-3.20.1-3.2.x86_64 python-pypdf-1.13+20130112-10.2.noarch python3-speechd-0.8.3-6.7.x86_64 python-cups-1.9.72-3.2.x86_64 python-decorator-3.4.2-4.1.noarch python3-gedit-3.20.2-1.34.x86_64 python3-nose-1.3.7-3.3.noarch python-cloudfiles-1.7.10-12.1.noarch python-cssutils-1.0-4.1.noarch python3-atspi-2.20.2-1.4.noarch python-qt5-5.5.1-6.3.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.