Planeta

  • Nuno Mariz
    If you are using PIL(Python Imaging Library) on Mac OS X(Tiger), you will probably have a "decoder jpeg not available" when resizing a jpeg image.
    This probably means that PIL doesn't have JPEG support, because libjpeg wasn't found when PIL was being configured.
    Here is the solution:
    • Download, compile and install jpeglib and zlib
    • Edit PIL setup.py and change to:
      JPEG_ROOT = "/usr/local/include"
      ZLIB_ROOT = "/usr/local/include"
      
    • Compile:
      python setup.py build_ext -i
      
    • Test:
      python selftest.py
      
    • If the result is something like this:
      "57 tests passed."
      
    • You are ready to go:
      python setup.py install
      
  • Nuno Mariz

    Python 2.5 is out!

    Por nmariz, em 19 Setembro 2006 13:50 - Mais entradas deste utilizador
    Python Python 2.5 is the latest major release of Python.
    As Guido it promised, wsgiref was added to the Python 2.5 Standard Library. For those who don't know what wsgi is, read this.
    You can find what's new in Python 2.5 here
  • Nuno Mariz

    Python 2.5 is out!

    Por nmariz, em 19 Setembro 2006 13:50 - Mais entradas deste utilizador
    Python Python 2.5 is the latest major release of Python.
    As Guido it promised, wsgiref was added to the Python 2.5 Standard Library. For those who don't know what wsgi is, read this.
    You can find what's new in Python 2.5 here