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 <module>
>     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

Reply via email to