473,545 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Odd behavior of python module listing

Lie
Yesterday I installed compiz-icon in my Ubuntu. Today, when I go to
the python interpreter, I happen to do this:

### START OF PYTHON SESSION ###
Python 2.5.2 (r252:60911, Apr 21 2008, 11:17:30)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.
>>help()
Welcome to Python 2.5! This is the online help utility.

If this is your first time using Python, you should definitely check
out
the tutorial on the Internet at http://www.python.org/doc/tut/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility
and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type
"modules",
"keywords", or "topics". Each module also comes with a one-line
summary
of what it does; to list the modules whose summaries contain a given
word
such as "spam", type "modules spam".

helpmodules

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

* Starting Compiz
... executing: compiz.real --replace --sm-disable --ignore-desktop-
hints ccp
Starting gtk-window-decorator
compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12
image format
GConf backend: There is an unsupported value at path /apps/compiz/
plugins/scale/allscreens/options/initiate_edge. Settings from this
path won't be read. Try to remove that value so that operation can
continue properly.
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(*arg s, **kwds)
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(reque st)
File "/usr/lib/python2.5/pydoc.py", line 1683, in help
elif request == 'modules': self.listmodule s()
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_pa ckages():
File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(p ath, name+'.', onerror):
File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
__import__(name )
File "/usr/lib/python2.5/site-packages/FusionIcon/interface_gtk/
__init__.py", line 3, in <module>
import main
File "/usr/lib/python2.5/site-packages/FusionIcon/interface_gtk/
main.py", line 213, in <module>
gtk.main()
KeyboardInterru pt
>>>
### END OF PYTHON SESSION ###

How on earth could python's help utility crashed compiz-icon, and made
compiz crash too (I lost my windows decoration after the crash). This
is repeatable, until I uninstalled compiz-icon. After uninstalling, I
retried help -modules again, same problem, different program, now a
blank Tk window showed up and it printed this traceback:

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(*arg s, **kwds)
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(reque st)
File "/usr/lib/python2.5/pydoc.py", line 1683, in help
elif request == 'modules': self.listmodule s()
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_pa ckages():
File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(p ath, 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.t k.call('package ', 'require', 'Togl')
_tkinter.TclErr or: can't find package Togl

OK, I don't think I can uninstall Tk without messing up a lot of
harmless python programs later, and by now, I figured out that the
problem isn't in compiz-icon afterall.

So, has anyone got something like this?

PS: Ubuntu Hardy Heron (8.04) + Python 2.5.2
Jun 27 '08 #1
0 1221

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1672
by: Paddy McCarthy | last post by:
This is really a comment on "Python in Systems Administration: Part I -- Better Scripting" http://www.samag.com/documents/s=8964/sam0312a/0312a.htm by Cameron Laird. Reading the article, although I am a fan of Python, I kinda take issue with the example given. It doesn't seem to fit with the concept of 'many smaller utilities doing one...
75
4601
by: Xah Lee | last post by:
http://python.org/doc/2.4.1/lib/module-re.html http://python.org/doc/2.4.1/lib/node114.html --------- QUOTE The module defines several functions, constants, and an exception. Some of the functions are simplified versions of the full featured methods for compiled regular expressions. Most non-trivial applications always use the compiled...
5
6742
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would cause. If I could create a large file that could be encrypted, and maybe add files to it by appending them and putting in some kind of delimiter...
6
465
by: mistabean | last post by:
Hello, first of all, I am a programming newbie, especially in python... Onwards to the problem, I have been having difficulty embedding a python module into my C/C++ program. (just a test program before moving on into the real thing). I have been making test runs using the codes from http://docs.python.org/ext/pure-embedding.html as a...
0
170
by: M.-A. Lemburg | last post by:
On 2008-04-30 18:42, Sean Ryan wrote: The -v option only causes Python to print more information to stderr explaining where it is looking for modules. You should be seeing any dynamic loader messages in both cases, ie. when running with or without -v. While it is possible that cx_Oracle does some extra processing when running Python in...
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.