[Bug 434612] New: weird python stacktraces
https://bugzilla.novell.com/show_bug.cgi?id=434612 Summary: weird python stacktraces Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: roland.kletzing@materna.de QAContact: qa@suse.de Found By: --- i have come across weird python traces when interrupting mistyped commands - e.g. if i had a typo in a command i hit ctrl-c and get a traceback which seems to originate from some python script. what`s going on here? how das python relate to using commands inside bash? linux:/ # which mroe which: no mroe in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin) linux:/ # find /lib/modules/ -name "*.ko" |mroe ^CTraceback (most recent call last): File "/usr/bin/command-not-found", line 8, in <module> import scout File "./scout/__init__.py", line 954, in <module> linux:/ # ScoutCore.load_modules() File "./scout/__init__.py", line 923, in load_modules cls.ml = ModuleLoader(Config.module_path) File "./scout/__init__.py", line 355, in __init__ if dirs != None: self.import_from(dirs) File "./scout/__init__.py", line 362, in import_from self._import(directory) File "./scout/__init__.py", line 372, in _import module = __import__(module_name) File "./scout/webpin.py", line 6, in <module> import httplib File "/usr/lib/python2.6/httplib.py", line 77, in <module> import mimetools File "/usr/lib/python2.6/mimetools.py", line 6, in <module> import tempfile File "/usr/lib/python2.6/tempfile.py", line 18, in <module> """ KeyboardInterrupt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=434612
User roland.kletzing@materna.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c1
--- Comment #1 from roland kletzing
https://bugzilla.novell.com/show_bug.cgi?id=434612
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=434612
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c2
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=434612
User roland.kletzing@materna.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c3
roland kletzing
https://bugzilla.novell.com/show_bug.cgi?id=434612
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c4
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=434612
User roland.kletzing@materna.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c5
--- Comment #5 from roland kletzing
About writing intro line: We thought about it, but there are people who do not want any text written when no command is found and this is hard to acheive once the text is out. Also new version should be much faster (less than half a second) so people will almost not notice.
to get back to that idea - what about adding something like this one:
you may have mistyped a command or the file is not installed. starting scout to give a hint to you. you can disable this message via "unset command_not_found_handle" or editing ........<<<
this would - enhance transparency - satisfy old users who don`t yet know about this extension and show them, that there now is a "hook" here. (i.e. what`s going on under the surface) - satisfy new users as they see, that there is a little searchengine inside - enable all those who don`t want a message to disable it as we have another ticket for scout, hereby i`m linking to that (for reference/comfort): https://bugzilla.novell.com/show_bug.cgi?id=435160 (it`s not exactly a duplicate, but it`s related imho) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=434612
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c6
--- Comment #6 from Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=434612
User prusnak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c7
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=434612
User roland.kletzing@materna.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=434612#c8
--- Comment #8 from roland kletzing
participants (1)
-
bugzilla_noreply@novell.com