Phil, can you please confirm whether you will implement any such debugging aids in the SIP API (I take it there is nothing at the moment)? I could really use some introspection abilities into SIP when things don&#39;t work as expected, as happens from time to time. This should save me a lot of frustration ..<div>
<br></div><div>Arve<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 4:53 PM, Arve Knudsen <span dir="ltr">&lt;<a href="mailto:arve.knudsen@gmail.com">arve.knudsen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I can confirm that the reason was a build inconsistency (wrong version SIP header being included). As such, some debugging help from SIP could probably have saved me some time (and next time something like this happens). For instance, maybe one could adjust SIP&#39;s loglevel so it would output error messages when an incompatible PyQt is loaded (or whatever goes wrong here).<br>
<font color="#888888">
<br>Arve</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 4:17 PM, Arve Knudsen <span dir="ltr">&lt;<a href="mailto:arve.knudsen@gmail.com" target="_blank">arve.knudsen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><div></div><div>On Tue, Jul 28, 2009 at 4:12 PM, Phil Thompson <span dir="ltr">&lt;<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>&gt;</span> wrote:<br></div></div>
<div class="gmail_quote"><div><div></div><div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
On Tue, 28 Jul 2009 16:03:05 +0200, Arve Knudsen &lt;<a href="mailto:arve.knudsen@gmail.com" target="_blank">arve.knudsen@gmail.com</a>&gt;<br>
<div><div></div><div>wrote:<br>
&gt; On Tue, Jul 28, 2009 at 3:53 PM, Phil Thompson<br>
&gt; &lt;<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; On Tue, 28 Jul 2009 15:38:09 +0200, Arve Knudsen<br>
&lt;<a href="mailto:arve.knudsen@gmail.com" target="_blank">arve.knudsen@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Are there any good troubleshooting techniques when unable to get a<br>
type<br>
&gt;&gt; &gt; definition from the SIP API? Sometimes, when there are inconsistencies<br>
&gt;&gt; &gt; in<br>
&gt;&gt; &gt; my<br>
&gt;&gt; &gt; build I am unable to get the type definition for QWidget, and I waste<br>
a<br>
&gt;&gt; lot<br>
&gt;&gt; &gt; of time trying to find out what&#39;s gone wrong. If SIP itself could give<br>
&gt;&gt; &gt; me<br>
&gt;&gt; &gt; some useful info wrt. to its state, I&#39;m sure that could save me a<br>
great<br>
&gt;&gt; &gt; deal<br>
&gt;&gt; &gt; of time.<br>
&gt;&gt;<br>
&gt;&gt; I don&#39;t know what you mean by its state.<br>
&gt;&gt;<br>
&gt;&gt; QWidget&#39;s type definition is a static data structure - sipType_QWidget.<br>
&gt;&gt; You<br>
&gt;&gt; don&#39;t get it, you just reference it.<br>
&gt;<br>
&gt;<br>
&gt; This is from an application embedding Python, so I&#39;m calling SIP&#39;s C API.<br>
&gt; In this case I have no choice but to go via the API right?<br>
<br>
</div></div>Right.<br>
<div><br>
&gt; What I do is<br>
&gt; call<br>
&gt; api_find_type(&quot;QWidget&quot;), which in this case returns NULL.<br>
<br>
</div>I would think the most likely thing in that case is that the QtGui module<br>
hasn&#39;t been imported.</blockquote></div></div><div><br>It has been imported, and like I said this code works for certain builds. It is indicative of inconsistent builds that it doesn&#39;t work, and it would be great to have some debugging aids.<br>


<br>Arve <br></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br></div>