<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to setup Django and MySQL-python on Mac OS X Lion</title>
	<atom:link href="http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/feed/" rel="self" type="application/rss+xml" />
	<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/</link>
	<description>Tech news, Web apps and Coding bits</description>
	<lastBuildDate>Tue, 21 May 2013 21:41:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Brock Klein</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-18212</link>
		<dc:creator><![CDATA[Brock Klein]]></dc:creator>
		<pubDate>Fri, 03 May 2013 21:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-18212</guid>
		<description><![CDATA[Sweet guide.  The mysql_config and $PATH edit steps really sealed this one for me.  No other guide seemed to have the right steps for that.

I now have MySQLdb working on Mac OS 10.7.5 with Python 2.7, MySQL 5.6 and MySQLdb 1.2.4b4.

Thanks a ton!]]></description>
		<content:encoded><![CDATA[<p>Sweet guide.  The mysql_config and $PATH edit steps really sealed this one for me.  No other guide seemed to have the right steps for that.</p>
<p>I now have MySQLdb working on Mac OS 10.7.5 with Python 2.7, MySQL 5.6 and MySQLdb 1.2.4b4.</p>
<p>Thanks a ton!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-18204</link>
		<dc:creator><![CDATA[sam]]></dc:creator>
		<pubDate>Mon, 29 Apr 2013 23:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-18204</guid>
		<description><![CDATA[Thanks!]]></description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Williams</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-18185</link>
		<dc:creator><![CDATA[David Williams]]></dc:creator>
		<pubDate>Mon, 08 Apr 2013 18:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-18185</guid>
		<description><![CDATA[Thanks so much.  Really great set of instructions.]]></description>
		<content:encoded><![CDATA[<p>Thanks so much.  Really great set of instructions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cleo</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-18064</link>
		<dc:creator><![CDATA[Cleo]]></dc:creator>
		<pubDate>Sun, 02 Dec 2012 22:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-18064</guid>
		<description><![CDATA[Tried everything but nothing worked for me. This is just too complicated with multiple  suggestions to fix it. Quit wasting more time on this and switched to Windows.]]></description>
		<content:encoded><![CDATA[<p>Tried everything but nothing worked for me. This is just too complicated with multiple  suggestions to fix it. Quit wasting more time on this and switched to Windows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mosab Babgi</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-18063</link>
		<dc:creator><![CDATA[Mosab Babgi]]></dc:creator>
		<pubDate>Sun, 02 Dec 2012 21:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-18063</guid>
		<description><![CDATA[Did you find any solution on this error, because I&#039;m getting the same without any clue about how to make it works?]]></description>
		<content:encoded><![CDATA[<p>Did you find any solution on this error, because I&#8217;m getting the same without any clue about how to make it works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiunjiun Ma</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17984</link>
		<dc:creator><![CDATA[Jiunjiun Ma]]></dc:creator>
		<pubDate>Fri, 28 Sep 2012 01:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17984</guid>
		<description><![CDATA[Thank you so much. I was struggling with the same issue and couldn&#039;t find any solution on the web. Your blog just saved me.]]></description>
		<content:encoded><![CDATA[<p>Thank you so much. I was struggling with the same issue and couldn&#8217;t find any solution on the web. Your blog just saved me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: decoding</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17982</link>
		<dc:creator><![CDATA[decoding]]></dc:creator>
		<pubDate>Mon, 24 Sep 2012 16:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17982</guid>
		<description><![CDATA[You need to install http://pypi.python.org/pypi/setuptools]]></description>
		<content:encoded><![CDATA[<p>You need to install <a href="http://pypi.python.org/pypi/setuptools" rel="nofollow">http://pypi.python.org/pypi/setuptools</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Hines</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17981</link>
		<dc:creator><![CDATA[Justin Hines]]></dc:creator>
		<pubDate>Mon, 24 Sep 2012 16:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17981</guid>
		<description><![CDATA[Can&#039;t figure out why I get this error when trying to build

server:MySQL-python-1.2.3 User$ sudo python setup.py buid
Password:
Traceback (most recent call last):
  File &quot;setup.py&quot;, line 5, in 
    from setuptools import setup, Extension
ImportError: No module named setuptools]]></description>
		<content:encoded><![CDATA[<p>Can&#8217;t figure out why I get this error when trying to build</p>
<p>server:MySQL-python-1.2.3 User$ sudo python setup.py buid<br />
Password:<br />
Traceback (most recent call last):<br />
  File &#8220;setup.py&#8221;, line 5, in<br />
    from setuptools import setup, Extension<br />
ImportError: No module named setuptools</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tommwhipple</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17952</link>
		<dc:creator><![CDATA[tommwhipple]]></dc:creator>
		<pubDate>Fri, 31 Aug 2012 18:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17952</guid>
		<description><![CDATA[@cleo, your problem is that mysql is compiled for 32 bit and the python wrapper is compiled for 64 bit. (or vice versa). Hence the wrong architecture error.]]></description>
		<content:encoded><![CDATA[<p>@cleo, your problem is that mysql is compiled for 32 bit and the python wrapper is compiled for 64 bit. (or vice versa). Hence the wrong architecture error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soso</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17939</link>
		<dc:creator><![CDATA[Soso]]></dc:creator>
		<pubDate>Wed, 15 Aug 2012 09:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17939</guid>
		<description><![CDATA[Another way is to use Python4MAMP, an add-on for MAMP to add Python, django, PIL...]]></description>
		<content:encoded><![CDATA[<p>Another way is to use Python4MAMP, an add-on for MAMP to add Python, django, PIL&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cleo</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17908</link>
		<dc:creator><![CDATA[Cleo]]></dc:creator>
		<pubDate>Mon, 09 Jul 2012 02:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17908</guid>
		<description><![CDATA[For some reason, I am just not able to get this thing work. Tried all options here and on stackoverflow. Please help!!!

     OSx version: 10.7.4

     Abc-MacBook:~ Abc$ file $(which python)
     /usr/bin/python: Mach-O universal binary with 2 architectures
     /usr/bin/python (for architecture x86_64):	Mach-O 64-bit executable x86_64
     /usr/bin/python (for architecture i386):	Mach-O executable i386

     Abc-MacBook:~ Abc$ file /usr/local/mysql/bin/mysql
     /usr/local/mysql/bin/mysql: Mach-O 64-bit executable x86_64

     Abc-MacBook:~ Abc$ /usr/local/mysql/bin/mysql_config --cflags
     -I/usr/local/mysql/include  -Os -g -fno-common -fno-strict-aliasing -arch x86_64

     Abc-MacBook:~ Abc$ more .profile

     # MacPorts Installer addition on 2012-07-08_at_11:53:29: adding an appropriate PATH variable for use with MacPorts.
     # export PATH=/opt/local/bin:/opt/local/sbin:$PATH
     PATH=&quot;/usr/local/mysql/bin:${PATH}&quot;
     export PATH
     export DYLD_LIBRARY_PATH=/usr/local/mysql-5.5.25a-osx10.6-x86_64/lib/:$DYLD_LIBRARY_PATH
     export VERSIONER_PYTHON_PREFER_64_BIT=yes
     export VERSIONER_PYTHON_PREFER_32_BIT=no
     # Finished adapting your PATH environment variable for use with MacPorts.
     alias mysql=/usr/local/mysql/bin/mysql
     alias mysqladmin=/usr/local/mysql/bin/mysqladmin

Error:

     Abc-MacBook:MySQL-python-1.2.3 Abc$ python
     Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 
     [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
     Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
     &gt;&gt;&gt; import MySQLdb
     /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-
     macosx-10.7-intel.egg/_mysql.pyc, but /Users/Abc/Downloads/MySQL-python-1.2.3 is being added to sys.path
     Traceback (most recent call last):
       File &quot;&quot;, line 1, in 
       File &quot;MySQLdb/__init__.py&quot;, line 19, in 
         import _mysql
       File &quot;build/bdist.macosx-10.7-intel/egg/_mysql.py&quot;, line 7, in 
       File &quot;build/bdist.macosx-10.7-intel/egg/_mysql.py&quot;, line 6, in __bootstrap__
     ImportError: dlopen(/Users/Abc/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, 2): no suitable image found.  Did find:
	/Users/Abc/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so: mach-o, but wrong architecture

Waiting for your responses. Thanks!!!]]></description>
		<content:encoded><![CDATA[<p>For some reason, I am just not able to get this thing work. Tried all options here and on stackoverflow. Please help!!!</p>
<p>     OSx version: 10.7.4</p>
<p>     Abc-MacBook:~ Abc$ file $(which python)<br />
     /usr/bin/python: Mach-O universal binary with 2 architectures<br />
     /usr/bin/python (for architecture x86_64):	Mach-O 64-bit executable x86_64<br />
     /usr/bin/python (for architecture i386):	Mach-O executable i386</p>
<p>     Abc-MacBook:~ Abc$ file /usr/local/mysql/bin/mysql<br />
     /usr/local/mysql/bin/mysql: Mach-O 64-bit executable x86_64</p>
<p>     Abc-MacBook:~ Abc$ /usr/local/mysql/bin/mysql_config &#8211;cflags<br />
     -I/usr/local/mysql/include  -Os -g -fno-common -fno-strict-aliasing -arch x86_64</p>
<p>     Abc-MacBook:~ Abc$ more .profile</p>
<p>     # MacPorts Installer addition on 2012-07-08_at_11:53:29: adding an appropriate PATH variable for use with MacPorts.<br />
     # export PATH=/opt/local/bin:/opt/local/sbin:$PATH<br />
     PATH=&#8221;/usr/local/mysql/bin:${PATH}&#8221;<br />
     export PATH<br />
     export DYLD_LIBRARY_PATH=/usr/local/mysql-5.5.25a-osx10.6-x86_64/lib/:$DYLD_LIBRARY_PATH<br />
     export VERSIONER_PYTHON_PREFER_64_BIT=yes<br />
     export VERSIONER_PYTHON_PREFER_32_BIT=no<br />
     # Finished adapting your PATH environment variable for use with MacPorts.<br />
     alias mysql=/usr/local/mysql/bin/mysql<br />
     alias mysqladmin=/usr/local/mysql/bin/mysqladmin</p>
<p>Error:</p>
<p>     Abc-MacBook:MySQL-python-1.2.3 Abc$ python<br />
     Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)<br />
     [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin<br />
     Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
     &gt;&gt;&gt; import MySQLdb<br />
     /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-<br />
     macosx-10.7-intel.egg/_mysql.pyc, but /Users/Abc/Downloads/MySQL-python-1.2.3 is being added to sys.path<br />
     Traceback (most recent call last):<br />
       File &#8220;&#8221;, line 1, in<br />
       File &#8220;MySQLdb/__init__.py&#8221;, line 19, in<br />
         import _mysql<br />
       File &#8220;build/bdist.macosx-10.7-intel/egg/_mysql.py&#8221;, line 7, in<br />
       File &#8220;build/bdist.macosx-10.7-intel/egg/_mysql.py&#8221;, line 6, in __bootstrap__<br />
     ImportError: dlopen(/Users/Abc/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, 2): no suitable image found.  Did find:<br />
	/Users/Abc/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so: mach-o, but wrong architecture</p>
<p>Waiting for your responses. Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some Programming Tutorials &#124; Trey Sullivan&#039;s Blog</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17905</link>
		<dc:creator><![CDATA[Some Programming Tutorials &#124; Trey Sullivan&#039;s Blog]]></dc:creator>
		<pubDate>Wed, 04 Jul 2012 20:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17905</guid>
		<description><![CDATA[[...] How to Setup Django and MySQL-Python on Mac OS X Lion If you decide to use MySQL with Python/Django [...]]]></description>
		<content:encoded><![CDATA[<p>[...] How to Setup Django and MySQL-Python on Mac OS X Lion If you decide to use MySQL with Python/Django [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: treysullivan</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17904</link>
		<dc:creator><![CDATA[treysullivan]]></dc:creator>
		<pubDate>Wed, 04 Jul 2012 00:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17904</guid>
		<description><![CDATA[Thanks a ton. Super helpful.]]></description>
		<content:encoded><![CDATA[<p>Thanks a ton. Super helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beginning: Python, Django and PyDev &#171; Yan Yi</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17881</link>
		<dc:creator><![CDATA[Beginning: Python, Django and PyDev &#171; Yan Yi]]></dc:creator>
		<pubDate>Tue, 12 Jun 2012 06:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17881</guid>
		<description><![CDATA[[...] have managed to import MySQLdb after checking out these guides, plus two Stack Overflow here and &lt;a [...]]]></description>
		<content:encoded><![CDATA[<p>[...] have managed to import MySQLdb after checking out these guides, plus two Stack Overflow here and &lt;a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: decoding</title>
		<link>http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/#comment-17835</link>
		<dc:creator><![CDATA[decoding]]></dc:creator>
		<pubDate>Sun, 08 Apr 2012 10:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://decoding.wordpress.com/?p=1881#comment-17835</guid>
		<description><![CDATA[I strongly recommend installing MySQL on the Mac via the provided dmg installer. Get the latest 64-bit dmg installer (http://dev.mysql.com/downloads/mysql/) and follow the instructions (http://dev.mysql.com/doc/refman/5.5/en/macosx-installation-pkg.html). You will easily end up with a working MySQL installation, as well as a pref. icon on the System Preferences.]]></description>
		<content:encoded><![CDATA[<p>I strongly recommend installing MySQL on the Mac via the provided dmg installer. Get the latest 64-bit dmg installer (<a href="http://dev.mysql.com/downloads/mysql/" rel="nofollow">http://dev.mysql.com/downloads/mysql/</a>) and follow the instructions (<a href="http://dev.mysql.com/doc/refman/5.5/en/macosx-installation-pkg.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.5/en/macosx-installation-pkg.html</a>). You will easily end up with a working MySQL installation, as well as a pref. icon on the System Preferences.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
