Yes I am using python 2.5 and I have corect version of PIL for python 2.5.<br><br>Thanks for your help anyways.<br><br><div class="gmail_quote">On Fri, May 29, 2009 at 2:47 AM, Dave Angel <span dir="ltr"><<a href="mailto:davea@ieee.org">davea@ieee.org</a>></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;">vishwajeet singh wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi List,<br>
<br>
I am trying to install review board on windows. It fails saying it could not<div><div></div><div class="h5"><br>
build PIL 1.1.6 because visual studio was not found on the system and but I<br>
have already installed the PIL 1.1.6 using binaries available on the site<br>
but review board fails to locate it and every time tries to download the PIL<br>
and fails while building the same.<br>
<br>
error shown below<br>
*error: Setup script exited with error: Python was built with Visual Studio<br>
2003;*<br>
*extensions must be built with a compiler than can generate compatible<br>
binaries.<br>
Visual Studio 2003 was not found on this system. If you have Cygwin<br>
installed,<br>
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.<br>
<br>
*I tried to build the PIL from source using cygwin but that also failed with<br>
following error<br>
* `_imp___Py_NoneStruct'<br>
build\temp.win32-2.5\Release\path.o:path.c:(.text+0xa93): undefined<br>
reference to<br>
`_imp___Py_NoneStruct'<br>
build\temp.win32-2.5\Release\path.o:path.c:(.text+0xac2): undefined<br>
reference to<br>
`_imp__PyExc_IndexError'<br>
build\temp.win32-2.5\Release\path.o:path.c:(.text+0xae5): undefined<br>
reference to<br>
`_imp__PyExc_TypeError'<br>
build\temp.win32-2.5\Release\path.o:path.c:(.text+0xd7c): undefined<br>
reference to<br>
`_imp___Py_NoneStruct'<br>
build\temp.win32-2.5\Release\path.o:path.c:(.text+0xd84): undefined<br>
reference to<br>
`_imp___Py_NoneStruct'<br>
build\temp.win32-2.5\Release\path.o:path.c:(.text+0xe01): undefined<br>
reference to<br>
`_imp__PyExc_AttributeError'<br>
collect2: ld returned 1 exit status<br>
error: command 'gcc' failed with exit status 1*<br>
<br>
Kindly help<br>
<br>
</div></div></blockquote>
<br>
You don't say just what version of Python you're using, but I'm guessing it's 2.5 You have to use the exact matching version of PIL, the one built for Python 2.5<br>
<br>
If you look at <a href="http://www.pythonware.com/products/pil/" target="_blank">http://www.pythonware.com/products/pil/</a>, you can see there are multiple downloads for PIL 1.1.6. They are not interchangeable.<br>
<br>
This may not be your problem, but it's the first thing I'd check.<div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Vishwajeet<br><a href="http://www.singhvishwajeet.com">http://www.singhvishwajeet.com</a><br>