<?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>Penguin on Rails &#187; Python</title>
	<atom:link href="http://www.cherpec.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cherpec.com</link>
	<description>linux + ruby on rails = love</description>
	<lastBuildDate>Thu, 17 Jun 2010 14:06:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ImportError: No module named PIL</title>
		<link>http://www.cherpec.com/2009/10/importerror-no-module-named-pil/</link>
		<comments>http://www.cherpec.com/2009/10/importerror-no-module-named-pil/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 20:36:43 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Dag]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[pil]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[python-imaging]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[zope]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=429</guid>
		<description><![CDATA[After server reinstall Plone website failed to start:

2009-10-11T13:45:56 ERROR Application Could not import Products.ATContentTypes
Traceback &#40;most recent call last&#41;:
  File &#34;/data/user/site/parts/zope2/lib/python/OFS/Application.py&#34;, line 709, in import_product
    product=__import__&#40;pname, global_dict, global_dict, silly&#41;
  File &#34;/home/apc/ecc/parts/plone/ATContentTypes/__init__.py&#34;, line 64, in ?
    import Products.ATContentTypes.content
  File &#34;/home/apc/ecc/parts/plone/ATContentTypes/content/__init__.py&#34;, line 26, in ?
    import [...]]]></description>
			<content:encoded><![CDATA[<p>After server reinstall <a href="http://plone.org/">Plone</a> website failed to start:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff4500;">2009</span>-<span style="color: #ff4500;">10</span>-11T13:<span style="color: #ff4500;">45</span>:<span style="color: #ff4500;">56</span> ERROR Application Could <span style="color: #ff7700;font-weight:bold;">not</span> <span style="color: #ff7700;font-weight:bold;">import</span> Products.<span style="color: black;">ATContentTypes</span>
Traceback <span style="color: black;">&#40;</span>most recent call last<span style="color: black;">&#41;</span>:
  File <span style="color: #483d8b;">&quot;/data/user/site/parts/zope2/lib/python/OFS/Application.py&quot;</span>, line <span style="color: #ff4500;">709</span>, <span style="color: #ff7700;font-weight:bold;">in</span> import_product
    product=<span style="color: #008000;">__import__</span><span style="color: black;">&#40;</span>pname, global_dict, global_dict, silly<span style="color: black;">&#41;</span>
  File <span style="color: #483d8b;">&quot;/home/apc/ecc/parts/plone/ATContentTypes/__init__.py&quot;</span>, line <span style="color: #ff4500;">64</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">?</span>
    <span style="color: #ff7700;font-weight:bold;">import</span> Products.<span style="color: black;">ATContentTypes</span>.<span style="color: black;">content</span>
  File <span style="color: #483d8b;">&quot;/home/apc/ecc/parts/plone/ATContentTypes/content/__init__.py&quot;</span>, line <span style="color: #ff4500;">26</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">?</span>
    <span style="color: #ff7700;font-weight:bold;">import</span> Products.<span style="color: black;">ATContentTypes</span>.<span style="color: black;">content</span>.<span style="color: black;">link</span>
  File <span style="color: #483d8b;">&quot;/home/apc/ecc/parts/plone/ATContentTypes/content/link.py&quot;</span>, line <span style="color: #ff4500;">39</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">?</span>
    <span style="color: #ff7700;font-weight:bold;">from</span> Products.<span style="color: black;">ATContentTypes</span>.<span style="color: black;">content</span>.<span style="color: black;">base</span> <span style="color: #ff7700;font-weight:bold;">import</span> registerATCT
  File <span style="color: #483d8b;">&quot;/home/apc/ecc/parts/plone/ATContentTypes/content/base.py&quot;</span>, line <span style="color: #ff4500;">63</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">?</span>
    <span style="color: #ff7700;font-weight:bold;">from</span> Products.<span style="color: black;">CMFPlone</span>.<span style="color: black;">PloneFolder</span> <span style="color: #ff7700;font-weight:bold;">import</span> ReplaceableWrapper
  File <span style="color: #483d8b;">&quot;/home/apc/ecc/parts/plone/CMFPlone/__init__.py&quot;</span>, line <span style="color: #ff4500;">215</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">?</span>
    <span style="color: #ff7700;font-weight:bold;">from</span> browser <span style="color: #ff7700;font-weight:bold;">import</span> ploneview
  File <span style="color: #483d8b;">&quot;/home/apc/ecc/parts/plone/CMFPlone/browser/ploneview.py&quot;</span>, line <span style="color: #ff4500;">12</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">?</span>
    <span style="color: #ff7700;font-weight:bold;">from</span> Products.<span style="color: black;">CMFPlone</span> <span style="color: #ff7700;font-weight:bold;">import</span> utils
  File <span style="color: #483d8b;">&quot;/home/apc/ecc/parts/plone/CMFPlone/utils.py&quot;</span>, line <span style="color: #ff4500;">5</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">?</span>
    <span style="color: #ff7700;font-weight:bold;">from</span> PIL <span style="color: #ff7700;font-weight:bold;">import</span> Image
<span style="color: #008000;">ImportError</span>: No module named PIL</pre></div></div>

<p>Oops, we need to install <a href="http://www.pythonware.com/products/pil/">PIL</a> library, thanks to <a href="http://dag.wieers.com/rpm/packages/python-imaging/">Dag</a> this is extremely easy on CentOS/RHEL/Fedora:</p>
<pre lang="">
yum install python-imaging
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/10/importerror-no-module-named-pil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
