Python help() problem on Gutsy

Chris Mohler cr33dog at gmail.com
Thu Jan 17 04:52:13 UTC 2008


Not sure which package I installed to cause this, but now using
Python's interactive help via 'help()' and then typing 'modules'
crashes Python with the output below.  'apt-cache search togl'
returns two ocaml packages, which I have already installed.  Any
ideas?

Thanks,
Chris

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/site.py", line 351, in __call__

  File "/usr/lib/python2.5/pydoc.py", line 1649, in __call__
    self.interact()
  File "/usr/lib/python2.5/pydoc.py", line 1667, in interact
    self.help(request)
  File "/usr/lib/python2.5/pydoc.py", line 1683, in help
    elif request == 'modules': self.listmodules()
  File "/usr/lib/python2.5/pydoc.py", line 1804, in listmodules
    ModuleScanner().run(callback)
  File "/usr/lib/python2.5/pydoc.py", line 1855, 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/OpenGL/Tk/__init__.py", line
87, in <module>
    _default_root.tk.call('package', 'require', 'Togl')
_tkinter.TclError: can't find package Togl




More information about the ubuntu-users mailing list