[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tracetool: use Python 2.5-compatible exception
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] tracetool: use Python 2.5-compatible exception handling syntax |
Date: |
Fri, 27 Apr 2012 11:00:29 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Apr 26, 2012 at 07:02:39PM +0200, Erik Rull wrote:
> is this related to the error message when calling configure:
> ./configure --prefix= --target-list=x86_64-softmmu --disable-vnc-png
> --disable-vnc-jpeg --disable-vnc-tls --disable-vnc-sasl --audio-card-list=
> --audio-drv-list= --enable-sdl --disable-xen --disable-brlapi
> --disable-bluez --disable-nptl --disable-curl --disable-guest-agent
> --disable-guest-base --disable-werror --disable-attr
>
>
> Error: invalid trace backend
> Please choose a supported trace backend.
>
>
> When trying to press tab after typing --tra appending to the line above, I
> get:
>
> File "/home/erik/qemu-test/qemu/scripts/tracetool.py", line 73
> except getopt.GetoptError as err:
> ^
> SyntaxError: invalid syntax
> File "/home/erik/qemu-test/qemu/scripts/tracetool.py", line 73
> except getopt.GetoptError as err:
> ^
> SyntaxError: invalid syntax
>
> Any ideas?
> My Debian 4.0 has Python 2.4.4.
Hi Eric,
Yes, it's the same issue. This patch will solve this particular problem
but you will hit others with Python 2.4.4. You need Python 2.5 or
later.
Debian 4.0 (etch) is End of Lifed and no longer supported by the Debian
project.
Two options:
1. Install a modern distro (get security updates, modern tools, etc).
or
2. Build the latest Python 2.x release from source at
http://python.org/.
Stefan
Re: [Qemu-devel] [PATCH] tracetool: use Python 2.5-compatible exception handling syntax, Stefan Hajnoczi, 2012/04/27