<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: &#8220;AttributeError: &#8216;module&#8217; object has no attribute &#8216;blah&#8217;&#8221;</title>
	<atom:link href="http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/</link>
	<description></description>
	<lastBuildDate>Thu, 09 Feb 2012 20:48:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: 4F2E4A2E</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-58434</link>
		<dc:creator>4F2E4A2E</dc:creator>
		<pubDate>Tue, 25 Oct 2011 13:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-58434</guid>
		<description>im my case i had the _init_.py, but it had some content like this:
---
import settings
try:
    import ldap
    CAN_USE = True
except:
    CAN_USE = False
---
so i removed it and everything is fine now...</description>
		<content:encoded><![CDATA[<p>im my case i had the _init_.py, but it had some content like this:<br />
&#8212;<br />
import settings<br />
try:<br />
    import ldap<br />
    CAN_USE = True<br />
except:<br />
    CAN_USE = False<br />
&#8212;<br />
so i removed it and everything is fine now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: masood</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-57806</link>
		<dc:creator>masood</dc:creator>
		<pubDate>Mon, 03 Oct 2011 05:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-57806</guid>
		<description>Hi..

how to call java method in python

please help me :-(</description>
		<content:encoded><![CDATA[<p>Hi..</p>
<p>how to call java method in python</p>
<p>please help me <img src='http://www.willmer.com/kb/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-55576</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 05 Apr 2011 10:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-55576</guid>
		<description>I am seeing the replies as below 
Thanks so much! __init__.py was my problem...

Can anyone explain me the problem of __init__.py problem?</description>
		<content:encoded><![CDATA[<p>I am seeing the replies as below<br />
Thanks so much! __init__.py was my problem&#8230;</p>
<p>Can anyone explain me the problem of __init__.py problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-46518</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 14 Aug 2010 17:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-46518</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Anyone here know how I can pass a regexp this module?:</p>
<p>import re</p>
<p>def htc(m):<br />
        return chr(int(m.group(1),16))</p>
<p>def urldecode(url):<br />
        rex=re.compile(&#8216;%([0-9a-hA-H][0-9a-hA-H])&#8217;,re.M)<br />
        return rex.sub(htc,url)</p>
<p>if __name__ == &#8216;__main__&#8217;:<br />
        print urldecode(&#8216;adasasdasd%20asdasdasdas&#8217;)</p>
<p>Using re.urldecode gives me the same &#8220;‘module’ object has no attribute&#8221; error but I&#8217;m new at this and don&#8217;t really know what I&#8217;m doing. The module seem to work fine I just can&#8217;t figure out how to pass a regexp to urldecode. Example:</p>
<p>match=re.compile(&#8216;flv_url=(.+?)amp;url_bigthumb&#8217;).findall(link)<br />
urls=re.urldecode(&#8216;match&#8217;)</p>
<p>or</p>
<p>match=re.compile(&#8216;flv_url=(.+?)amp;url_bigthumb&#8217;).findall(link)<br />
print urldecode(&#8216;match&#8217;)</p>
<p>Thanks for any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-45001</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Fri, 15 Jan 2010 15:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-45001</guid>
		<description>thanks.  my problem was that i had two versions of a python package (numpy).  i was trying to invoke a method that was only in the new one, however it found the old package first, so it couldn&#039;t locate the new method.

anyway, your post got me looking in the right direction :)</description>
		<content:encoded><![CDATA[<p>thanks.  my problem was that i had two versions of a python package (numpy).  i was trying to invoke a method that was only in the new one, however it found the old package first, so it couldn&#8217;t locate the new method.</p>
<p>anyway, your post got me looking in the right direction <img src='http://www.willmer.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aksegaly</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-43510</link>
		<dc:creator>aksegaly</dc:creator>
		<pubDate>Sat, 24 Oct 2009 21:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-43510</guid>
		<description>this is my error
attributeerror â€˜moduleâ€™ object has no attribute system
affer the compilation
help meâ€¦</description>
		<content:encoded><![CDATA[<p>this is my error<br />
attributeerror â€˜moduleâ€™ object has no attribute system<br />
affer the compilation<br />
help meâ€¦</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aksegaly</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-43509</link>
		<dc:creator>aksegaly</dc:creator>
		<pubDate>Sat, 24 Oct 2009 21:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-43509</guid>
		<description>this is my error
attributeerror â€˜moduleâ€™ object has no attribute system
helpâ€¦</description>
		<content:encoded><![CDATA[<p>this is my error<br />
attributeerror â€˜moduleâ€™ object has no attribute system<br />
helpâ€¦</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aksegaly</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-43508</link>
		<dc:creator>aksegaly</dc:creator>
		<pubDate>Sat, 24 Oct 2009 21:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-43508</guid>
		<description>this is my error 
attributeerror &#039;module&#039; object has no attribute system
help...</description>
		<content:encoded><![CDATA[<p>this is my error<br />
attributeerror &#8216;module&#8217; object has no attribute system<br />
help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnarlodious</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-42255</link>
		<dc:creator>Gnarlodious</dc:creator>
		<pubDate>Sat, 05 Sep 2009 03:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-42255</guid>
		<description>Thanks for the hint. In my case the script was named &quot;Cookie&quot;, the same as the module imported. One symptom was that I was getting double printing in both Terminal and browser.</description>
		<content:encoded><![CDATA[<p>Thanks for the hint. In my case the script was named &#8220;Cookie&#8221;, the same as the module imported. One symptom was that I was getting double printing in both Terminal and browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snf</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/comment-page-1/#comment-41471</link>
		<dc:creator>snf</dc:creator>
		<pubDate>Sun, 09 Aug 2009 21:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comment-41471</guid>
		<description>just a brief note

if you use import to include a module, make sure you don&#039;t have a file named just the same as the module you are trying to include in current directory

it seems that python takes preference for local files over modules thus import fails

a rookie observation

cheers</description>
		<content:encoded><![CDATA[<p>just a brief note</p>
<p>if you use import to include a module, make sure you don&#8217;t have a file named just the same as the module you are trying to include in current directory</p>
<p>it seems that python takes preference for local files over modules thus import fails</p>
<p>a rookie observation</p>
<p>cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>

