<?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>Newsyland Blog &#187; Python</title>
	<atom:link href="http://blog.newsyland.com/category/programming/python/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.newsyland.com</link>
	<description>tail -f /dev/brain &#62;&#62; blog.newsyland.com</description>
	<lastBuildDate>Thu, 11 Aug 2011 19:56:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing odcctools on Leopard</title>
		<link>http://blog.newsyland.com/programming/python/installing-odcctools-on-leopard</link>
		<comments>http://blog.newsyland.com/programming/python/installing-odcctools-on-leopard#comments</comments>
		<pubDate>Wed, 19 Dec 2007 10:04:40 +0000</pubDate>
		<dc:creator>Kirk Ireson</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.newsyland.com/original/installing-odcctools-on-leopard</guid>
		<description><![CDATA[Instructions for installing odcctools in Mac OS X 10.5 Leopard (on Intel Macbook Pro Core 2 Duo) via macports: I was attempting to get matplotlib, the python plotting library, installed via macports and the first problem is that the library &#8230; <a href="http://blog.newsyland.com/programming/python/installing-odcctools-on-leopard">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Instructions for installing odcctools in Mac OS X 10.5 Leopard (on Intel Macbook Pro Core 2 Duo) via macports:</p>
<p>I was attempting to get matplotlib, the python plotting library, installed via macports and the first problem is that the library is dependent on odcctools (20061117_0), which fails to build in the x86_64 environment.</p>
<p>But, we <strong>can</strong> get it to build&#8230;:</p>
<p>1) (clean the slate)</p>
<p class="code"> $sudo port -v selfupdate;sudo portindex<br />
$sudo port clean &#8211;all odcctools</p>
<p>2) (this part will fail)</p>
<p class="code"> $sudo port install odcctools</p>
<p>Output:</p>
<p class="code"> &#8212;&gt;  Fetching odcctools<br />
&#8212;&gt;  Verifying checksum(s) for odcctools<br />
&#8212;&gt;  Extracting odcctools<br />
&#8212;&gt;  Configuring odcctools<br />
&#8212;&gt;  Building odcctools with target default<br />
Error: Target org.macports.build returned: shell command &#8221; cd &#8220;/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_odcctools/work/odcctools/odcctools&#8221; &amp;&amp; make default &#8221; returned error 2<br />
Command output: cd libstuff &amp;&amp; make<br />
/usr/bin/gcc-4.0 -Wall -Wno-long-double -Wno-import  -DHAVE_CONFIG_H   -I/opt/local/include -I../include -I../include   -O2 -fno-builtin-round -fno-builtin-trunc -no-cpp-precomp -mdynamic-no-pic  -c -o allocate.o allocate.c<br />
In file included from ../include/libkern/OSByteOrder.h:70,<br />
from ../include/mach/ndr.h:94,<br />
from ../include/mach/clock_priv.h:7,<br />
from ../include/mach/mach_interface.h:37,<br />
from ../include/mach/mach.h:62,<br />
from allocate.c:26:<br />
../include/libkern/machine/OSByteOrder.h:45: error: redefinition of &#8216;_OSSwapInt16&#8242;<br />
/usr/include/libkern/i386/_OSByteOrder.h:49: error: previous definition of &#8216;_OSSwapInt16&#8242; was here<br />
../include/libkern/machine/OSByteOrder.h:54: error: redefinition of &#8216;_OSSwapInt32&#8242;<br />
/usr/include/libkern/i386/_OSByteOrder.h:58: error: previous definition of &#8216;_OSSwapInt32&#8242; was here<br />
../include/libkern/machine/OSByteOrder.h:63: error: redefinition of &#8216;_OSSwapInt64&#8242;<br />
/usr/include/libkern/i386/_OSByteOrder.h:69: error: previous definition of &#8216;_OSSwapInt64&#8242; was here<br />
make[1]: *** [allocate.o] Error 1<br />
make: *** [libstuff] Error 2<br />
Error: Status 1 encountered during processing.</p>
<p>3)<br />
(hint from <a href="http://code.google.com/p/iphone-dev/issues/detail?id=106#c1">http://code.google.com/p/iphone-dev/issues/detail?id=106#c1</a> )<br />
From this path,<br />
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_odcctools/work/odcctools/odcctools<br />
in each subdirectory, look for a &#8220;Makefile&#8221;. IF the file has a &#8220;MYINCLUDES&#8221; line, add this after the equals ( = ) sign:<br />
&#8220;-isysroot /Developer/SDKs/MacOSX10.4u.sdk&#8221; (w/o quotes). If the Makefile doesn&#8217;t contain a line which starts with MYINCLUDES, then ignore it.</p>
<p>e.g. This is how the line will look after putting in:<br />
&#8230;<br />
MYINCLUDES      = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I$(builddir) -I$(srcdir) -I$(top_builddir)/include \<br />
-I$(top_srcdir)/include $(INCPRIVEXT) $(FORHDRS)<br />
&#8230;</p>
<p>4) (continue installation)</p>
<p class="code"> $sudo port install odcctools</p>
<p>Output:</p>
<p class="code"> &#8212;&gt;  Building odcctools with target default<br />
&#8212;&gt;  Staging odcctools into destroot<br />
&#8212;&gt;  Installing odcctools 20061117_0<br />
&#8212;&gt;  Activating odcctools 20061117_0<br />
&#8212;&gt;  Cleaning odcctools</p>
<p>Done.</p>
<p>Next, I tried to continue the installation of matplotlib (e.g. sudo port install py25-matplotlib ), but &lt;sigh&gt; now g95 won&#8217;t compile&#8230;</p>
<p><em>[UPDATE 22 Sat, 2007: py25-matplotlib, including g25 now installs via Macports!!]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.newsyland.com/programming/python/installing-odcctools-on-leopard/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Newsyland blog starts!</title>
		<link>http://blog.newsyland.com/original/newsyland-blog-starts</link>
		<comments>http://blog.newsyland.com/original/newsyland-blog-starts#comments</comments>
		<pubDate>Mon, 12 Nov 2007 02:07:03 +0000</pubDate>
		<dc:creator>Kirk Ireson</dc:creator>
				<category><![CDATA[Original]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.newsyland.com/?p=1</guid>
		<description><![CDATA[Newsyland blog starts today. Yes, the world is treated to yet another blog.  I have wanted to have a blog for some time now, to share, give back if you will, things I have learned &#8211; some internet wisdom and &#8230; <a href="http://blog.newsyland.com/original/newsyland-blog-starts">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Newsyland blog starts today.</p>
<p>Yes, the world is treated to yet another blog.  I have wanted to have a blog for some time now, to share, give back if you will, things I have learned &#8211; some internet wisdom and some of my own discoveries.  I spent some time looking at <a href="http://en.wikipedia.org/wiki/Content_management_system" title="Content_management_system">CMS</a> software and wanted to do something based in <a href="http://www.python.org/" title="python.org">Python</a> since I&#8217;m learning it, but since my web provider (<a href="http://www.1and1.com/?k_id=8170161" title="1and1">1and1.com</a>) only supports version 2.2.1 (yes, a version over 4 years old, and yes I asked for a newer version but was shot down), I decided instead on the ubiquitous <a href="http://codex.wordpress.org" title="Wordpress website">WordPress</a>.</p>
<p>I&#8217;m an oceanographer in California, where I use <a href="http://www.mathworks.com/products/matlab/" title="mathworks website">Matlab</a> and build websites, so will hopefully pass on nuggets of wisdom regarding Matlab, Javascript, <a href="http://php.net/" title="All things PHP">PHP</a> and CSS. I&#8217;m also a recent and enthusiastic <a href="http://www.apple.com/macosx/" title="Mac OS X">Mac OS X</a> convert, but dabble in Linux (<a href="http://fedoraproject.org/" title="Fedoraproject.org">Fedora</a>) and am a Windows power user, so these subjects may come up. I&#8217;m also learning <a href="http://www.python.org/" title="www.python.org">python</a> and planning on taking some of the <a href="http://www.oreillyschool.com/" title="oreillyschool.com">O&#8217;Reilly on-line classes</a>, so will probably post some things about them too.</p>
<p>Oh, and &#8220;<a href="http://newsyland.com" title="newsyland.com">newsyland</a>&#8221; is, I hope, a witty homophone to New Zealand &#8211; a place I&#8217;d love to live some day&#8230;</p>
<p>Filed under <a href="http://blog.newsyland.com/about/" title="newsyland about">About </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.newsyland.com/original/newsyland-blog-starts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

