[Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-31 Thread Zygmunt Krynicki
This is a bug in python that cannot be fixed in command not found. The
error you are seeing happens before the application starts up. This is
actually python runtime startup being interrupted

** Changed in: command-not-found (Ubuntu)
   Status: Confirmed = Invalid

** Changed in: command-not-found
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-31 Thread Vadim Rutkovsky
Can't we just handle it and show pretty 'Cancelled' output? See
http://effbot.org/zone/stupid-exceptions-keyboardinterrupt.htm for
example

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-31 Thread Zygmunt Krynicki
On 01/31/2012 09:29 AM, Vadim Rutkovsky wrote:
 Can't we just handle it and show pretty 'Cancelled' output? See
 http://effbot.org/zone/stupid-exceptions-keyboardinterrupt.htm for
 example


Please re-read my previous comment. Unless you patch python there is 
nothing an application can do to prevent this. We _do_ handle 
KeyboardInterrupt exceptions by the way, just that most people don't get 
to see that one as it simply silently quits.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-31 Thread Vadim Peretokin
Perhaps the python interpreter could be wrapped around?

It's just... really unpleasant and unaesthetic.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-31 Thread Zygmunt Krynicki
Given the environment we are running in that is not feasible technically. 
The correct solution is to either patch python or to write a C/vala client.

Last time I checked this (a few years ago) vala lacked bindings to gdbm,
if that is changed we could track this in a blueprint.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-31 Thread Vadim Peretokin
There are bindings:
https://github.com/apmasell/vapis/blob/master/gdbm.vapi

Though I'm not for advocating a complete re-write just because of this...
unless someone has free time they'd like to spend on this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-30 Thread Vadim Rutkovsky
** Also affects: command-not-found
   Importance: Undecided
   Status: New

** Changed in: command-not-found (Ubuntu)
   Status: New = Confirmed

** Changed in: command-not-found
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 920300] Re: Does not handle KeyboardInterrupt

2012-01-22 Thread Vadim Peretokin
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/920300

Title:
  Does not handle KeyboardInterrupt

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/920300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs