<?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>Technitribe &#187; dblatex</title>
	<atom:link href="http://blog.peopleareducks.com/tag/dblatex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.peopleareducks.com</link>
	<description>not at all like a diatribe</description>
	<lastBuildDate>Sat, 27 Mar 2010 01:00:48 +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>Installing dblatex from the latest MacPorts</title>
		<link>http://blog.peopleareducks.com/2009/12/04/installing-dblatex-from-the-latest-macports/</link>
		<comments>http://blog.peopleareducks.com/2009/12/04/installing-dblatex-from-the-latest-macports/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 09:05:38 +0000</pubDate>
		<dc:creator>tbielawa</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[dblatex]]></category>
		<category><![CDATA[Macports]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=107</guid>
		<description><![CDATA[I ran into this issue while installing dblatex (0.2.10) from the most recent MacPorts tree today:

Traceback &#40;most recent call last&#41;:
  File &#34;/opt/local/bin/dblatex&#34;, line 16, in &#60;module&#62;
    from dbtexmf.dblatex import dblatex
ImportError: No module named dbtexmf.dblatex

I got past it by exporting PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages, but clearly this was not optimal. I was about to file [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into this issue while installing dblatex (0.2.10) from the most recent MacPorts tree today:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">Traceback <span style="color: black;">&#40;</span>most recent call last<span style="color: black;">&#41;</span>:
  File <span style="color: #483d8b;">&quot;/opt/local/bin/dblatex&quot;</span>, line <span style="color: #ff4500;">16</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">&lt;</span>module<span style="color: #66cc66;">&gt;</span>
    <span style="color: #ff7700;font-weight:bold;">from</span> dbtexmf.<span style="color: black;">dblatex</span> <span style="color: #ff7700;font-weight:bold;">import</span> dblatex
<span style="color: #008000;">ImportError</span>: No module named dbtexmf.<span style="color: black;">dblatex</span></pre></div></div>

<p>I got past it by exporting <code>PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages</code>, but clearly this was not optimal. I was about to file a bug report about the issue but before I did that I read their <a href="http://guide.macports.org/#project.tickets">new ticket guidelines</a> which requested the full build log be included in the ticket.</p>
<p>In the build log was the solution. I would have missed it had my shell scrollback not been set to unlimited. Nestled a good 182 lines back in my buffer was this little message:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">---<span style="color: #000000; font-weight: bold;">&gt;</span>  Installing python26 <span style="color: #000000; font-weight: bold;">@</span>2.6.4_0+darwin
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Activating python26 <span style="color: #000000; font-weight: bold;">@</span>2.6.4_0+darwin
&nbsp;
To fully <span style="color: #7a0874; font-weight: bold;">complete</span> your installation and <span style="color: #c20cb9; font-weight: bold;">make</span> python <span style="color: #000000;">2.6</span> the default, please run
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> python_select
<span style="color: #c20cb9; font-weight: bold;">sudo</span> python_select python26</pre></div></div>

<p>I did as instructed, and sure enough, dblatex started working! I just wanted to post this on the blog in case anyone else ran into this and missed it like I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peopleareducks.com/2009/12/04/installing-dblatex-from-the-latest-macports/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
