<?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>Common Media, Inc. &#187; Python</title>
	<atom:link href="http://www.commonmediainc.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.commonmediainc.com</link>
	<description>Online Communities and Web Development</description>
	<lastBuildDate>Tue, 20 Jul 2010 15:19:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Python package trouble? Check your python</title>
		<link>http://www.commonmediainc.com/2009/12/19/python-package-trouble-check-your-python/</link>
		<comments>http://www.commonmediainc.com/2009/12/19/python-package-trouble-check-your-python/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 20:45:36 +0000</pubDate>
		<dc:creator>pjmorse</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.commonmediainc.com/?p=133</guid>
		<description><![CDATA[This is exactly the sort of low-level stuff you&#8217;d think everyone should know, but I searched an error message today and didn&#8217;t get a useful answer. I found one, so here it is for the next searcher.
If you&#8217;re trying to build a Python package (in my case, the ReportLab toolkit), and your build fails with [...]]]></description>
			<content:encoded><![CDATA[<p>This is exactly the sort of low-level stuff you&#8217;d think everyone should know, but I searched an error message today and didn&#8217;t get a useful answer. I found one, so here it is for the next searcher.</p>
<p>If you&#8217;re trying to build a Python package (in my case, <a title="Reportlab Toolkit (in Python)" href="http://www.reportlab.org/oss/rl-toolkit/">the ReportLab toolkit</a>), and your build fails with a string of error messages starting with <code>Python.h: No such file or directory</code>, the problem is that the package includes some amount of code which is written in C. The build is trying to compile that code, and the C compiler is looking for the Python C headers, and for most Linux users (I ran in to this on an Ubuntu system) the C headers aren&#8217;t part of the core Python package. You need the <code>python-dev</code> package. Try this:</p>
<p><code>sudo apt-get install python-dev</code></p>
<p>Then try your build again; I bet it will work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.commonmediainc.com/2009/12/19/python-package-trouble-check-your-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
