New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting call trace while executing "modules spam" at help prompt #51264
Comments
[root@ ~]# python
Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help() Welcome to Python 2.6! This is the online help utility. If this is your first time using Python, you should definitely check out Enter the name of any module, keyword, or topic to get help on writing To get a list of available modules, keywords, or topics, type "modules", help> modules spam Here is a list of matching modules. Enter any module name to get more help. ** (.:18352): WARNING **: Trying to register gtype 'WnckWindowState' as ** (.:18352): WARNING **: Trying to register gtype 'WnckWindowActions' ** (.:18352): WARNING **: Trying to register gtype
'WnckWindowMoveResizeMask' as flags when in fact it is of type 'GEnum'
Adding pauses to default speech formatting strings.
Adding pauses to Gecko speech formatting strings.
Adding pauses to soffice speech formatting strings.
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 1720, in __call__
self.interact()
File "/usr/lib64/python2.6/pydoc.py", line 1738, in interact
self.help(request)
File "/usr/lib64/python2.6/pydoc.py", line 1757, in help
self.listmodules(split(request)[1])
File "/usr/lib64/python2.6/pydoc.py", line 1862, in listmodules
apropos(key)
File "/usr/lib64/python2.6/pydoc.py", line 1962, in apropos
ModuleScanner().run(callback, key)
File "/usr/lib64/python2.6/pydoc.py", line 1927, 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'
>>> |
It's a problem with one of your installed modules. I don't think Python |
This patch will make the help> gdb I think this is right in general, a single broken module should not Another issues is why the |
It may well be possible to improve the handling of exceptions (I haven't |
The python bindings were therefore fixed downstream: |
Looks like this is an external bug. |
The problem of pydoc apropos failing due to exceptions raised by pkgutil walk_packages is fixed in 2.7.3 by the changes for bpo-7425; they were already fixed in 3.x. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: