<?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: Python ImportError: cannot import name X</title>
	<atom:link href="http://codingrecipes.com/python-importerror-cannot-import-name-x/feed" rel="self" type="application/rss+xml" />
	<link>http://codingrecipes.com/python-importerror-cannot-import-name-x</link>
	<description></description>
	<lastBuildDate>Sun, 22 Jan 2012 07:31:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: John Villar</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-2034</link>
		<dc:creator>John Villar</dc:creator>
		<pubDate>Mon, 30 May 2011 14:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-2034</guid>
		<description>Can&#039;t believe this was the error i was having. One million thanks to you pal!!! :-)</description>
		<content:encoded><![CDATA[<p>Can&#8217;t believe this was the error i was having. One million thanks to you pal!!! <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-1637</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 08 Feb 2011 04:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-1637</guid>
		<description>I had this same issue using mod_python trying to import psycopg2.  I had to move the

import psycopg2 

under

def handler(req):
  import psycopg2
  ...</description>
		<content:encoded><![CDATA[<p>I had this same issue using mod_python trying to import psycopg2.  I had to move the</p>
<p>import psycopg2 </p>
<p>under</p>
<p>def handler(req):<br />
  import psycopg2<br />
  &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mary</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-1456</link>
		<dc:creator>Mary</dc:creator>
		<pubDate>Wed, 01 Dec 2010 02:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-1456</guid>
		<description>Thank you, thank you, thank you, thank you!</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-1392</link>
		<dc:creator>AJ</dc:creator>
		<pubDate>Tue, 12 Oct 2010 19:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-1392</guid>
		<description>You are putting the imports in your constructor? That seems a little weird (and extremely against the standards lol). Alternatively you could separate the parent code, and re-order the imports.

For instance:
/parent1.py/ &lt;--first import parent2, then children
/parent2.py/ &lt;-- part of parent code needed by children
/children/childa.py
/children/childb.py &lt;-- imports parent2
/children/__init__.py &lt;-- same as before</description>
		<content:encoded><![CDATA[<p>You are putting the imports in your constructor? That seems a little weird (and extremely against the standards lol). Alternatively you could separate the parent code, and re-order the imports.</p>
<p>For instance:<br />
/parent1.py/ &lt;&#8211;first import parent2, then children<br />
/parent2.py/ &lt;&#8211; part of parent code needed by children<br />
/children/childa.py<br />
/children/childb.py &lt;&#8211; imports parent2<br />
/children/__init__.py &lt;&#8211; same as before</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ysa</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-1078</link>
		<dc:creator>ysa</dc:creator>
		<pubDate>Tue, 01 Jun 2010 22:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-1078</guid>
		<description>thanks so much for solving my problem.

***would take &quot;years&quot; to find it.heheheeh...
saved me a lot of searching [2]!</description>
		<content:encoded><![CDATA[<p>thanks so much for solving my problem.</p>
<p>***would take &#8220;years&#8221; to find it.heheheeh&#8230;<br />
saved me a lot of searching [2]!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: digitalpbk</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-931</link>
		<dc:creator>digitalpbk</dc:creator>
		<pubDate>Tue, 20 Apr 2010 07:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-931</guid>
		<description>Thanks a lot, saved me a lot of searching :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot, saved me a lot of searching <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pointer</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-845</link>
		<dc:creator>pointer</dc:creator>
		<pubDate>Wed, 31 Mar 2010 10:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-845</guid>
		<description>thanks a lot for the post. it does make sense to me.</description>
		<content:encoded><![CDATA[<p>thanks a lot for the post. it does make sense to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-228</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 07 Nov 2009 18:38:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-228</guid>
		<description>Thx for the info - it also solved my problem - but i had to reread your post quite often to understand it.

The problem is a **circular Reference** - as child gets imported in parent, which also wants to import parts of parent.</description>
		<content:encoded><![CDATA[<p>Thx for the info &#8211; it also solved my problem &#8211; but i had to reread your post quite often to understand it.</p>
<p>The problem is a **circular Reference** &#8211; as child gets imported in parent, which also wants to import parts of parent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luislope</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-227</link>
		<dc:creator>luislope</dc:creator>
		<pubDate>Sat, 18 Jul 2009 18:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-227</guid>
		<description>ok ok ok I got, niceeeee. thanks.</description>
		<content:encoded><![CDATA[<p>ok ok ok I got, niceeeee. thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luislope</title>
		<link>http://codingrecipes.com/python-importerror-cannot-import-name-x/comment-page-1#comment-226</link>
		<dc:creator>luislope</dc:creator>
		<pubDate>Sat, 18 Jul 2009 13:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=533#comment-226</guid>
		<description>and what happen if you hace a bouch of classes on:

/ab/ab_classes.py

and now make a package like this:

/a/a_classes.py
/b/b_classes.py

???</description>
		<content:encoded><![CDATA[<p>and what happen if you hace a bouch of classes on:</p>
<p>/ab/ab_classes.py</p>
<p>and now make a package like this:</p>
<p>/a/a_classes.py<br />
/b/b_classes.py</p>
<p>???</p>
]]></content:encoded>
	</item>
</channel>
</rss>

