With 0x02070000 it gives me some errors about the else statement.<br><br>I tried with  #if PY_VERSION_HEX > 0x02060000 and the following error disappears :<br>NMAKE : fatal error U1077: '"D:\ProgramFiles\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'<br>
<br>The others remain though..<br><br>ps : sorry, i forgot to reply all on the firsts messages..<br><br><blockquote>On Mon, 2 May 2011 12:52:04 +0200, Johanna <<a href="mailto:johanna.royer@gmail.com">johanna.royer@gmail.com</a>><br>

wrote:<br><div class="im">> Yes actually it is a beta version Python 2.6b2. But I cannot really<br>
change<br>
> the version<br>
> of python as a lot of things depend on it.<br>
> Do you think the problem is related to that ? Is there a workaround ?<br>
<br>
</div>That's exactly what the problem is - you are using an unsupported version<br>
of Python.<br><br>
You will have to hack at the code, ie. change the #if PY_VERSION_HEX in<br>
all the relevant places, so that the code is disabled for v2.6.<br></blockquote>

<div class="gmail_quote">On Mon, May 2, 2011 at 2:24 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Mon, 2 May 2011 14:06:31 +0200, Johanna <<a href="mailto:johanna.royer@gmail.com">johanna.royer@gmail.com</a>><br>
wrote:<br>
<div class="im">> Ok, thanks for your answer.<br>
> Can I ask you though what should I put instead of #if PY_VERSION_HEX >=<br>
> 0x02060000 ?<br>
> It seems to me that this should support all later versions, thus 2.6b2,<br>
but<br>
> obviously it doesn't.<br>
<br>
</div>0x02070000 should do it.<br>
<font color="#888888"><br>
Phil<br>
</font></blockquote></div><br>