<?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>Dragly &#187; Python</title>
	<atom:link href="http://dragly.org/category/programming/python-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://dragly.org</link>
	<description>It was about time I started writing my own tutorials to share some of the knowledge I&#039;ve picked up from around.</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:57:04 +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>Fixing a bug with python-visual in Ubuntu Karmic</title>
		<link>http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/</link>
		<comments>http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 12:42:00 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://svenni.dragly.com/v7/?p=158</guid>
		<description><![CDATA[I was preparing to do some tasks in my physics course today, and experienced a rather annoying problem when attempting to use the python-visual package in Ubuntu. There seems to be a bug in Ubuntu Karmic which results in the &#8230; <a href="http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was preparing to do some tasks in my physics course today, and experienced a rather annoying problem when attempting to use the python-visual package in Ubuntu.</p>
<p>There seems to be a bug in Ubuntu Karmic which results in the following output when trying to run this command:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> visual <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #66cc66;">*</span></pre></div></div>

<p>The output is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Traceback <span style="color: #7a0874; font-weight: bold;">&#40;</span>most recent call <span style="color: #c20cb9; font-weight: bold;">last</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  File <span style="color: #ff0000;">&quot;cooper.py&quot;</span>, line <span style="color: #000000;">1</span>, <span style="color: #000000; font-weight: bold;">in</span>
    from visual import <span style="color: #000000; font-weight: bold;">*</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.6/dist-packages/visual/__init__.py&quot;</span>, line <span style="color: #000000;">59</span>, <span style="color: #000000; font-weight: bold;">in</span>
    import cvisual
AttributeError: <span style="color: #ff0000;">'Boost.Python.StaticProperty'</span> object attribute <span style="color: #ff0000;">'__doc__'</span> is read-only</pre></div></div>

<p>The fix is luckily quite simple.</p>
<p>Andrew Mitchell has a package repository for Ubuntu which contains an update to a library called &#8220;boost&#8221;. You can add this repository by selecting System &gt; Administration &gt; Software Sources. Then select &#8220;Other Software&#8221; and click on &#8220;Add&#8230;&#8221;.</p>
<p>Now, type in the following in the textbox:</p>
<pre><strong>ppa:ajmitch/ppa
</strong></pre>
<p>Then click &#8220;Add source&#8221; and &#8220;Close&#8221;. If prompted, select &#8220;Reload&#8221; and then go to System &gt; Administration &gt; Update Manager. Click &#8220;Check&#8221; and then install all updates.</p>
<p>When this has been done, you are ready to run your python script.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

