[pypy-dev] How to get PIL to install?

Jacob Finkelman eh2406 at wayne.edu
Thu Mar 22 03:57:13 CET 2012


Thanks

I instaled
pypy-c-jit-latest-win32.zip 17M 2012-03-13
then Install distribute and PIP.
run "cmd.exe"
cd c:\...
pip install pillow
and
...
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error
C2632: 'char' followed by 'char' is illegal
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error
C2059: syntax error : ','
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error
C2632: 'short' followed by 'short' is illegal
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error
C2059: syntax error : ','
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : warnin
g C4114: same type qualifier used more than once
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error
C2632: 'char' followed by 'char' is illegal
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error
C2059: syntax error : ','
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : warnin
g C4114: same type qualifier used more than once
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error
C2632: 'short' followed by 'short' is illegal
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error
C2059: syntax error : ','
    error: command 'c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe'
failed with exit status 2
    Complete output from command C:\pypy\pypy.exe -c "import setuptools;__file__
='c:\\pypy\\bin\\build\\pillow\\setup.py';exec(compile(open(__file__).read().rep
lace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-mana
ged --record c:\users\jlap\appdata\local\temp\pip-g_jlod-record\install-record.t
xt:
    running install
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\PIL
copying PIL\ArgImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\BdfFontFile.py -> build\lib.win32-2.7\PIL
copying PIL\BmpImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\BufrStubImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\ContainerIO.py -> build\lib.win32-2.7\PIL
copying PIL\CurImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\DcxImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\EpsImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\ExifTags.py -> build\lib.win32-2.7\PIL
copying PIL\FitsStubImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\FliImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\FontFile.py -> build\lib.win32-2.7\PIL
copying PIL\FpxImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\GbrImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\GdImageFile.py -> build\lib.win32-2.7\PIL
copying PIL\GifImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\GimpGradientFile.py -> build\lib.win32-2.7\PIL
copying PIL\GimpPaletteFile.py -> build\lib.win32-2.7\PIL
copying PIL\GribStubImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\Hdf5StubImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\IcnsImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\IcoImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\Image.py -> build\lib.win32-2.7\PIL
copying PIL\ImageChops.py -> build\lib.win32-2.7\PIL
copying PIL\ImageCms.py -> build\lib.win32-2.7\PIL
copying PIL\ImageColor.py -> build\lib.win32-2.7\PIL
copying PIL\ImageDraw.py -> build\lib.win32-2.7\PIL
copying PIL\ImageDraw2.py -> build\lib.win32-2.7\PIL
copying PIL\ImageEnhance.py -> build\lib.win32-2.7\PIL
copying PIL\ImageFile.py -> build\lib.win32-2.7\PIL
copying PIL\ImageFileIO.py -> build\lib.win32-2.7\PIL
copying PIL\ImageFilter.py -> build\lib.win32-2.7\PIL
copying PIL\ImageFont.py -> build\lib.win32-2.7\PIL
copying PIL\ImageGL.py -> build\lib.win32-2.7\PIL
copying PIL\ImageGrab.py -> build\lib.win32-2.7\PIL
copying PIL\ImageMath.py -> build\lib.win32-2.7\PIL
copying PIL\ImageMode.py -> build\lib.win32-2.7\PIL
copying PIL\ImageOps.py -> build\lib.win32-2.7\PIL
copying PIL\ImagePalette.py -> build\lib.win32-2.7\PIL
copying PIL\ImagePath.py -> build\lib.win32-2.7\PIL
copying PIL\ImageQt.py -> build\lib.win32-2.7\PIL
copying PIL\ImageSequence.py -> build\lib.win32-2.7\PIL
copying PIL\ImageShow.py -> build\lib.win32-2.7\PIL
copying PIL\ImageStat.py -> build\lib.win32-2.7\PIL
copying PIL\ImageTk.py -> build\lib.win32-2.7\PIL
copying PIL\ImageTransform.py -> build\lib.win32-2.7\PIL
copying PIL\ImageWin.py -> build\lib.win32-2.7\PIL
copying PIL\ImImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\ImtImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\IptcImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\JpegImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\McIdasImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\MicImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\MpegImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\MspImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\OleFileIO.py -> build\lib.win32-2.7\PIL
copying PIL\PaletteFile.py -> build\lib.win32-2.7\PIL
copying PIL\PalmImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PcdImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PcfFontFile.py -> build\lib.win32-2.7\PIL
copying PIL\PcxImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PdfImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PixarImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PngImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PpmImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PsdImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\PSDraw.py -> build\lib.win32-2.7\PIL
copying PIL\SgiImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\SpiderImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\SunImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\TarIO.py -> build\lib.win32-2.7\PIL
copying PIL\TgaImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\TiffImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\TiffTags.py -> build\lib.win32-2.7\PIL
copying PIL\WalImageFile.py -> build\lib.win32-2.7\PIL
copying PIL\WmfImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\XbmImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\XpmImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\XVThumbImagePlugin.py -> build\lib.win32-2.7\PIL
copying PIL\__init__.py -> build\lib.win32-2.7\PIL
running build_ext
building '_imaging' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\libImaging
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -IlibImaging -IC:\pypy\include /Tc_imaging.c /Fobuild\temp.win32
-2.7\Release\_imaging.obj
_imaging.c
_imaging.c(1230) : warning C4133: 'function' : incompatible types - from 'PyStri
ngObject *' to 'PyObject *'
_imaging.c(1384) : warning C4996: 'strcpy': This function or variable may be uns
afe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO
_WARNINGS. See online help for details.
_imaging.c(1412) : warning C4996: 'strcpy': This function or variable may be uns
afe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO
_WARNINGS. See online help for details.
_imaging.c(1550) : warning C4996: 'strcpy': This function or variable may be uns
afe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO
_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -IlibImaging -IC:\pypy\include /Tcdecode.c /Fobuild\temp.win32-2
.7\Release\decode.obj
decode.c
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -IlibImaging -IC:\pypy\include /Tcencode.c /Fobuild\temp.win32-2
.7\Release\encode.obj
encode.c
encode.c(161) : warning C4996: 'write': The POSIX name for this item is deprecat
ed. Instead, use the ISO C++ conformant name: _write. See online help for detail
s.
        c:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(322) : see
declaration of 'write'
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -IlibImaging -IC:\pypy\include /Tcmap.c /Fobuild\temp.win32-2.7\
Release\map.obj
map.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : warning C4
114: same type qualifier used more than once
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error C263
2: 'char' followed by 'char' is illegal
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error C205
9: syntax error : ','
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error C263
2: 'short' followed by 'short' is illegal
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error C205
9: syntax error : ','
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : warning C4
114: same type qualifier used more than once
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error C263
2: 'char' followed by 'char' is illegal
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error C205
9: syntax error : ','
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : warning C4
114: same type qualifier used more than once
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error C263
2: 'short' followed by 'short' is illegal
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error C205
9: syntax error : ','
error: command 'c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe' fail
ed with exit status 2
----------------------------------------
Command C:\pypy\pypy.exe -c "import setuptools;__file__='c:\\pypy\\bin\\build\\p
illow\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --single-version-externally-managed --record c:\users\jla
p\appdata\local\temp\pip-g_jlod-record\install-record.txt failed with error code
 1 in c:\pypy\bin\build\pillow
Storing complete log in C:\Users\Jlap\AppData\Roaming\pip\pip.log
c:\pypy\bin>

On Wed, Mar 21, 2012 at 1:41 PM, Armin Rigo <arigo at tunes.org> wrote:
>
> Hi Jacob,
>
> On Mon, Mar 5, 2012 at 14:17, Jacob Finkelman <eh2406 at wayne.edu> wrote:
> > If it involves translating pypy, then I am stuck. This laptop does not have
> > the resources to translate pypy.
>
> Yes, but I've made the change in the official source of PyPy too,
> which means that you can simply upgrade to a more recent version from
> http://buildbot.pypy.org/nightly/trunk/ and try again.
>
>
> A bientôt,
>
> Armin.
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> http://mail.python.org/mailman/listinfo/pypy-dev


More information about the pypy-dev mailing list