#525425 python-opengl: Module causes problems with pydoc

#525425#5
Date:
2009-04-24 13:56:23 UTC
From:
To:
If python-opengl is installed and I try to run, say, "pydoc -k file",
the following error comes up and the search terminates early:

Traceback (most recent call last):
  File "/usr/bin/pydoc", line 5, in <module>
    pydoc.cli()
  File "/usr/lib/python2.5/pydoc.py", line 2196, in cli
    apropos(val)
  File "/usr/lib/python2.5/pydoc.py", line 1891, in apropos
    ModuleScanner().run(callback, key)
  File "/usr/lib/python2.5/pydoc.py", line 1856, in run
    for importer, modname, ispkg in pkgutil.walk_packages():
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
    __import__(name)
  File "/usr/lib/python2.5/site-packages/quodlibet/__init__.py", line 114, in import_ql
    try: return old_import(module, *args, **kwargs)
  File "/usr/lib/pymodules/python2.5/OpenGL/Tk/__init__.py", line 87, in <module>
    _default_root.tk.call('package', 'require', 'Togl')
_tkinter.TclError: can't find package Togl

#525425#10
Date:
2009-11-26 08:23:21 UTC
From:
To:
When in Python interactive mode, I get the following

help> modules

Please wait a moment while I gather a list of all available modules...

/usr/lib/python2.5/site-packages/twisted/words/im/__init__.py:8: UserWarning: twisted.im will be undergoing a rewrite at some point in the future.
  warnings.warn("twisted.im will be undergoing a rewrite at some point in the future.")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site.py", line 342, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib/python2.5/pydoc.py", line 1650, in __call__
    self.interact()
  File "/usr/lib/python2.5/pydoc.py", line 1668, in interact
    self.help(request)
  File "/usr/lib/python2.5/pydoc.py", line 1684, in help
    elif request == 'modules': self.listmodules()
  File "/usr/lib/python2.5/pydoc.py", line 1805, in listmodules
    ModuleScanner().run(callback)
  File "/usr/lib/python2.5/pydoc.py", line 1856, in run
    for importer, modname, ispkg in pkgutil.walk_packages():
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
    __import__(name)
  File "/usr/lib/pymodules/python2.5/OpenGL/Tk/__init__.py", line 87, in <module>
    _default_root.tk.call('package', 'require', 'Togl')
_tkinter.TclError: can't find package Togl


After doing a search I saw that mgltools-opengltk provided
/usr/lib/python2.5/site-packages/opengltk/OpenGL/Tk/Togl/togl.so. Installing that
didn't help and nothing else appears to be close.

Removing python-opengl fixes the problem. But that doesn't seem to be a solution.

Also, could possibly #527342 take care of it?

Michael