On 02/04/2012 11:39 AM, Alistair Buxton wrote:
> The problem is that the crash_guard tries to do (basically) this:
>
> print "Python version: %d.%d.%d %s %d" % sys.version_info
>
> This fails. Then the outer try: block catches and hides the exception
> that this produces before exiting.
>
> I'm not sure if this is a python bug or change or what, but the
> following code works instead:
>
> print "Python version: %d.%d.%d %s %d" % (sys.version_info.major,
> sys.version_info.minor, sys.version_info.micro,
> sys.version_info.releaselevel, sys.version_info.serial)
>
> or indeed:
>
> print "Python version: %s" % sys.version
>
> ** Changed in: command-not-found (Ubuntu)
> Status: New => Confirmed
>
I have a somewhat unfinished branch that fixes this and tries to work
around most of the "I connected with putty and ubuntu does not work" issues.
On 02/04/2012 11:39 AM, Alistair Buxton wrote: info.major, info.minor, sys.version_ info.micro, info.releaselev el, sys.version_ info.serial)
> The problem is that the crash_guard tries to do (basically) this:
>
> print "Python version: %d.%d.%d %s %d" % sys.version_info
>
> This fails. Then the outer try: block catches and hides the exception
> that this produces before exiting.
>
> I'm not sure if this is a python bug or change or what, but the
> following code works instead:
>
> print "Python version: %d.%d.%d %s %d" % (sys.version_
> sys.version_
> sys.version_
>
> or indeed:
>
> print "Python version: %s" % sys.version
>
> ** Changed in: command-not-found (Ubuntu)
> Status: New => Confirmed
>
I have a somewhat unfinished branch that fixes this and tries to work
around most of the "I connected with putty and ubuntu does not work" issues.
Thanks
ZK