[Setup] SQLAlchemy (how to install)

barnsey123 nbarnes at csavagencies-uk.com
Thu Sep 27 10:31:55 UTC 2012


Er...going back to the beginning and going down the route recommended in
/Professional Plone 4 Development (August 2011 edition) / I'm stuck on page
36. Having spent a morning learning about virtualenv and setting up a new
environment with "--no-site-packages" I arrive at installing PIL, luckily,
the latest version is the same as the one mentioned in the book (1.1.7).

But installation fails with:

~/Imaging-1.1.7$ /home/XXXXX/plone-python/bin/python setup.py install
running install
running build
running build_py
creating build
creating build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/__init__.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ArgImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/BdfFontFile.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/BmpImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/BufrStubImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ContainerIO.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/CurImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/DcxImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/EpsImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ExifTags.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/FitsStubImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/FliImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/FontFile.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/FpxImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/GbrImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/GdImageFile.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/GifImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/GimpGradientFile.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/GimpPaletteFile.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/GribStubImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/Hdf5StubImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/IcoImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/IcnsImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/Image.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageChops.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageCms.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageColor.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageDraw.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageDraw2.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageEnhance.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageFile.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageFileIO.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageFilter.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageFont.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageGL.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageGrab.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageMath.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageMode.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageOps.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImagePalette.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImagePath.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageQt.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageSequence.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageShow.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageStat.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageTk.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageTransform.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImageWin.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImImagePlugin.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/ImtImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/IptcImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/JpegImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/McIdasImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/MicImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/MpegImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/MspImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/OleFileIO.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PaletteFile.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PalmImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PcdImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PcfFontFile.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PcxImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PdfImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PixarImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PngImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PpmImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PsdImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/PSDraw.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/SgiImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/SpiderImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/SunImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/TarIO.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/TgaImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/TiffImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/TiffTags.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/WalImageFile.py -> build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/WmfImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/XbmImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/XpmImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
copying PIL/XVThumbImagePlugin.py ->
build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.6
running build_ext
building '_imaging' extension
creating build/temp.gnukfreebsd-8.1-1-amd64-x86_64-2.6
creating build/temp.gnukfreebsd-8.1-1-amd64-x86_64-2.6/libImaging
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -IlibImaging
-I/home/nbarnes/plone-python/include -I/usr/local/include -I/usr/include
-I/usr/include/python2.6 -c _imaging.c -o
build/temp.gnukfreebsd-8.1-1-amd64-x86_64-2.6/_imaging.o
_imaging.c:75:20: error: Python.h: No such file or directory
In file included from libImaging/Imaging.h:14,
                 from _imaging.c:77:

This is followed by a gazillion other error messages.
Anybody any ideas? Do I need Python source code package? If so, is this for
my "live" environment or my spanking new "virtualenv"?

Confused, baffled, frustrated and fed-up
Barnsey



--
View this message in context: http://plone.293351.n2.nabble.com/SQLAlchemy-how-to-install-tp7559500p7559579.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.


More information about the Setup mailing list