<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mFabrik - mobile sites, apps, HTML5 and CMS software development &#187; pil</title>
	<atom:link href="http://blog.mfabrik.com/tag/pil/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mfabrik.com</link>
	<description>Freedom delivered.</description>
	<lastBuildDate>Wed, 03 Aug 2011 09:47:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Easily install all Python versions under Linux and OSX using collective.buildout.python</title>
		<link>http://blog.mfabrik.com/2010/07/16/easily-install-all-python-versions-under-linux-and-osx-using-collective-buildout-python/</link>
		<comments>http://blog.mfabrik.com/2010/07/16/easily-install-all-python-versions-under-linux-and-osx-using-collective-buildout-python/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:47:45 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[plone]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[buildout]]></category>
		<category><![CDATA[collective]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[pil]]></category>
		<category><![CDATA[python imaging library]]></category>
		<category><![CDATA[readline]]></category>
		<category><![CDATA[virtualenv]]></category>

		<guid isPermaLink="false">http://blog.mfabrik.com/?p=576</guid>
		<description><![CDATA[Here are short instructions how to install all versions (2.4, 2.5, 2.6, 2.7 and 3.1) of Python interpreters on UNIX system. The instructions were tested on Ubuntu 10.04 Lucid Lynx Linux but should work on other systems as is. The installation is based of downloading, compiling and installing different Pythons and their libraries using buildout [...]]]></description>
			<content:encoded><![CDATA[<p>Here are short instructions how to install all versions (2.4, 2.5, 2.6, 2.7 and 3.1) of Python interpreters on UNIX system. The instructions were tested on Ubuntu 10.04 Lucid Lynx Linux but should work on other systems as is. The installation is based of downloading, compiling and installing different Pythons and their libraries using <a href="http://www.buildout.org">buildout </a>tool. <a href="http://svn.plone.org/svn/collective/buildout/python/">A buildout configuration for doing this</a> is maintained by a <a href="http://plone.org">Plone</a> community.</p>
<p>This buildout is especially useful to get Python 2.4 properly running under the latest Ubuntu 10.04 Lucid Lynx. This is because Ubuntu repositories won&#8217;t ship with Python 2.4 packages anymore.</p>
<p>The installation will also include static compilation of some very popular libraries. These are dependencies for other Python packages including, but not limited, to</p>
<ul>
<li>libjpeg</li>
<li>Python imaging library</li>
<li>readline</li>
</ul>
<h2>Prerequisites</h2>
<ul>
<li>Some Python version is installed (OS default)</li>
<li>GCC compiler is installed (sudo apt-get install build-essential)</li>
<li>Subversion tool is installed (sudo apt-get install subversion)</li>
</ul>
<h2>Running it</h2>
<pre>svn co http://svn.plone.org/svn/collective/buildout/python/
cd python
python bootstrap.py
bin/buildout</pre>
<h2>Using it</h2>
<p>All Pythons are under <a href="http://pypi.python.org/pypi/virtualenv">virtualenv</a> installations. This means that you can activate one Python configuration for your shell once easily (<em>python</em> command will run under different Python versions).</p>
<p>Activating Python 2.4</p>
<pre>source python/python-2.4/bin/activate
(python-2.4)moo@murskaamo:~/code$ python -V
Python 2.4.6</pre>
<p>Check that Python Imaging Library works</p>
<pre>python
Python 2.4.6 (#1, Jul 16 2010, 10:31:46)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import PIL</pre>
<p>(No exceptions raised, Python Imaging Library works well).
<p class="signature">
<a href="http://mfabrik.com/@@zoho-contact-form"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/mfabrik-24.png"></a> <a href="http://mfabrik.com/@@zoho-contact-form">Get developers</a> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml"><img valign="middle" src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml">Subscribe mFabrik blog in a reader</a> <a href="http://twitter.com/mfabrik"> <img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/twitter-24.png"></a> <a href="http://twitter.com/moo9000">Follow me on Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2010/07/16/easily-install-all-python-versions-under-linux-and-osx-using-collective-buildout-python/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Installing Python Imaging Library (PIL) under virtualenv or buildout</title>
		<link>http://blog.mfabrik.com/2009/11/19/installing-python-imaging-library-pil-under-virtualenv-or-buildout/</link>
		<comments>http://blog.mfabrik.com/2009/11/19/installing-python-imaging-library-pil-under-virtualenv-or-buildout/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 20:58:16 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[plone]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[buildout]]></category>
		<category><![CDATA[pil]]></category>
		<category><![CDATA[satchmo]]></category>
		<category><![CDATA[site packages]]></category>
		<category><![CDATA[virtualenv]]></category>

		<guid isPermaLink="false">http://blog.twinapex.fi/?p=349</guid>
		<description><![CDATA[I have greatly struggled to have PIL library support in isolated Python environments like virtualenv &#8211;no-site-packages. For example, when installing Satchmo shop under virtualenv: ../bin/clonesatchmo.pyhe Python Imaging Library is not installed. Install from your distribution binaries. ../bin/clonesatchmo.py The Python Imaging Library is not installed. Install from your distribution binaries. Though it clearly is there, installed [...]]]></description>
			<content:encoded><![CDATA[<p>I have greatly struggled to have PIL library support in isolated Python environments like virtualenv &#8211;no-site-packages.</p>
<p>For example, when installing <a href="http://www.satchmoproject.com/">Satchmo</a> shop under virtualenv:</p>
<pre>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">../bin/clonesatchmo.pyhe Python Imaging Library is not installed. Install from your distribution binaries.</div>

../bin/clonesatchmo.py
The Python Imaging Library is not installed. Install from your distribution binaries.</pre>
<p>Though it clearly is there, installed by <em>easy_install PIL </em>command:</p>
<pre>ls ../lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg
ArgImagePlugin.py	 ExifTags.py		  GimpGradientFile.pyc...</pre>
<p>Does anyone know if this problem is with PIL itself, eggified PIL or something else?</p>
<p>In any case, there is an easy workaround: use system-wide PIL (sudo apt-get install python-imaging) and symlink PIL from your site-wide installation under the isolated Python environment:</p>
<pre>(satchmo-py25)mulli% pwd
/srv/plone/mmaspecial/satchmo-py25/lib/python2.5/site-packages
(satchmo-py25)mulli% ln -s /usr/lib/python2.4/PIL .</pre>
<div>That works for now, but I&#8217;d like to learn how to make virtualenv and buildout install PIL egg bullet-proof way.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2009/11/19/installing-python-imaging-library-pil-under-virtualenv-or-buildout/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

