<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - math.pi does not work - Comments</title>
 <link>http://community.activestate.com/forum-topic/math-pi-does-not-work</link>
 <description>Comments for &quot;math.pi does not work&quot;</description>
 <language>en</language>
<item>
 <title>math.pi does not work</title>
 <link>http://community.activestate.com/forum-topic/math-pi-does-not-work</link>
 <description>&lt;p&gt;Hi i have a simple example here&lt;/p&gt;
&lt;p&gt;import math&lt;br /&gt;
r=5&lt;br /&gt;
print 2*math.pi*r&lt;/p&gt;
&lt;p&gt;this will not compile or run on my osx tiger machine,&lt;/p&gt;
&lt;p&gt;i have python 2.51 IDE installed&lt;/p&gt;
&lt;p&gt;this is the error message i get&lt;/p&gt;
&lt;p&gt;  File &quot;/Users/stephengalton/msc/python/math.py&quot;, line 1, in&lt;br /&gt;
    import math&lt;br /&gt;
  File &quot;/Users/stephengalton/msc/python/math.py&quot;, line 2, in&lt;br /&gt;
    print math.pi&lt;br /&gt;
AttributeError: &#039;module&#039; object has no attribute &#039;pi&#039;&lt;/p&gt;
&lt;p&gt;any ideas&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/math-pi-does-not-work#comments</comments>
 <category domain="http://community.activestate.com/forums/activepython-support-0">ActivePython Support</category>
 <category domain="http://community.activestate.com/os/os-x-tiger-powerpc-intel">OS X Tiger ( PowerPC / Intel )</category>
 <pubDate>Wed, 10 Oct 2007 01:41:32 -0700</pubDate>
 <dc:creator>djgaltron</dc:creator>
 <guid isPermaLink="false">1500 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
