Received: from eggs.gnu.org ([208.118.235.92]:57939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCDlA-000612-64 for qemu-devel@nongnu.org; Mon, 26 Mar 2012 13:31:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCDl7-0001wN-Vp for qemu-devel@nongnu.org; Mon, 26 Mar 2012 13:31:11 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:45107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCDl7-0001vF-Kk for qemu-devel@nongnu.org; Mon, 26 Mar 2012 13:31:09 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20120322214257.2720.24892.stgit@ginnungagap.bsc.es> Date: Mon, 26 Mar 2012 19:31:03 +0200 In-Reply-To: (Stefan Hajnoczi's message of "Mon, 26 Mar 2012 15:56:17 +0100") Message-ID: <87398vfew8.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [RFC PATCH 0/8] Rewrite tracetool using python modules List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com Stefan Hajnoczi writes: > I tried to build this after make distclean with the nop backend: > GEN trace.h > Traceback (most recent call last): > File "/home/stefanha/qemu/scripts/tracetool.py", line 141, in > main(sys.argv) > File "/home/stefanha/qemu/scripts/tracetool.py", line 136, in main > tracetool.generate(sys.stdin, arg_format, arg_backend, **kwargs) > File "/home/stefanha/qemu/scripts/tracetool/__init__.py", line 177, > in generate > if not tracetool.format.exists(mformat): > UnboundLocalError: local variable 'tracetool' referenced before assignment > Do you also get this error? Strange, I didn't get it on my first tests, but now I do on a clean checkout. I'll resend the series (a simple "import tracetool" in the "generate" body seems to work). Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth