Bug 526552

Summary: broken python help()->modules
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: jan.kratochvil, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-6.8.91.20090930-2.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-30 22:12:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 526313    

Description Jan Kratochvil 2009-09-30 20:19:58 UTC
Description of problem:
Python integrated help() support gets broken by installing gdb.rpm.

Version-Release number of selected component (if applicable):
gdb-6.8.91.20090925-2.fc12

How reproducible:
Always.

Steps to Reproduce:
python
help()
modules gdb

Actual results:
$ python
>>> help()                                                                      help> modules gdb
Here is a list of matching modules.  Enter any module name to get more help.
gdbm
gdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/site.py", line 433, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib64/python2.6/pydoc.py", line 1684, in __call__
    self.interact()
  File "/usr/lib64/python2.6/pydoc.py", line 1702, in interact
    self.help(request)
  File "/usr/lib64/python2.6/pydoc.py", line 1720, in help
    self.listmodules(split(request)[1])
  File "/usr/lib64/python2.6/pydoc.py", line 1809, in listmodules
    apropos(key)
  File "/usr/lib64/python2.6/pydoc.py", line 1909, in apropos
    ModuleScanner().run(callback, key)
  File "/usr/lib64/python2.6/pydoc.py", line 1874, in run
    for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror):
  File "/usr/lib64/python2.6/pkgutil.py", line 110, in walk_packages
    __import__(name)
  File "/usr/lib/python2.6/site-packages/gdb/__init__.py", line 19, in <module>
    import gdb.command.require
  File "/usr/lib/python2.6/site-packages/gdb/command/require.py", line 21, in
<module>
    class RequireCommand (gdb.Command):
AttributeError: 'module' object has no attribute 'Command'


Expected results:
+/-:
help> modules gdb
Here is a list of matching modules.  Enter any module name to get more help.
gdbm 
fedora.client.pkgdb 
SHARED_DATA_DIR: /usr/share/glipper
Binding shortcut <Ctrl><Alt>c to popup glipper
help> 


Additional info:
It was bugreported at Python upstream: http://bugs.python.org/issue7015

Comment 1 Jan Kratochvil 2009-09-30 21:17:03 UTC
Fixed in: gdb-6.8.91.20090930-2.fc12
Moved the directory under /usr/share/gdb/.

Comment 2 Jan Kratochvil 2009-09-30 22:12:54 UTC
By the ticket:
https://fedorahosted.org/rel-eng/ticket/2247
it is now tagged in f12-beta:
http://koji.fedoraproject.org/koji/buildinfo?buildID=134595