Hi Rune !

Welcome to the happiness of Python bindings ! ;)

This warning message comes from Clutter library (compiled in C), so it
behaves as if exaile.py is the binary file you executed, in fact, the
Python interpreter. So you cannot extract more information because the
Python code source is encapsuled in that interpreter.

The only thing you can do is to use Python debugging tools, like pdb,
by adding breakpoints somewhere in your python code (related to a
CairoTexture object, at least) and run the debugger step-to-step.

You can use the old-school method and add prints at some points of your
code source and take the last print before your warning message and the
next print after, and fit your lookup area.

But the best advice I could give to you for the next time is to test
frequently the code you are writing. By this way, you can spot and
locate earlier and more easily where error/warning messages come from.

Good luck :)

Damien

Le Tue, 27 Apr 2010 06:25:19 +0200,
Rune Svendsen <[email protected]> a écrit :

> Hello all!
> 
> I get the following warning in a terminal, when running some clutter
> code:
> 
>         (exaile.py:3905): Clutter-WARNING **: Attempting to map a
> child that does not meet the necessary invariants: the actor
>         'ClutterCairoTexture' has no parent
> 
> What I'm wondering is if there's a way to make it print out more
> specific information, for example the context and what line exactly it
> gives this warning for.
> The code is in a plugin for the program "exaile.py", but still it
> prints the warning as if the code was in "exaile.py". Is there a way
> to track down which line is causing this warning?
> 
> Thank you!
> 
> /Rune
> 
--
To unsubscribe send a mail to [email protected]

Reply via email to