Bug 526552 - broken python help()->modules
Summary: broken python help()->modules
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 526313
TreeView+ depends on / blocked
 
Reported: 2009-09-30 20:19 UTC by Jan Kratochvil
Modified: 2009-09-30 22:12 UTC (History)
2 users (show)

Fixed In Version: gdb-6.8.91.20090930-2.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-30 22:12:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.