<?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: Installing Python MySQLdb 1.2.2 on Mac OS X</title>
	<atom:link href="http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/</link>
	<description>Web Hosting Reviews &#38; Mac WordPress Theme</description>
	<lastBuildDate>Sun, 21 Feb 2010 17:45:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: aspratley</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-20075</link>
		<dc:creator>aspratley</dc:creator>
		<pubDate>Sun, 21 Feb 2010 17:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-20075</guid>
		<description>If you&#039;re having trouble getting it installed the new version of mysql-python requires some different instructions, also if you&#039;re using 64 or 32 bit versions of python or mysql will make a difference. There&#039;s some information here: 

&lt;a href=&quot;http://learninglamp.wordpress.com/2010/02/21/mysqldb-python-mysql-and-os-x-a-match-made-in-satans-bum/&quot; rel=&quot;nofollow&quot;&gt;http://learninglamp.wordpress.com/2010/02/21/mysqldb-python-mysql-and-os-x-a-match-made-in-satans-bum/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>If you&#8217;re having trouble getting it installed the new version of mysql-python requires some different instructions, also if you&#8217;re using 64 or 32 bit versions of python or mysql will make a difference. There&#8217;s some information here: </p>
<p><a href="http://learninglamp.wordpress.com/2010/02/21/mysqldb-python-mysql-and-os-x-a-match-made-in-satans-bum/" rel="nofollow">http://learninglamp.wordpress.com/2010/02/21/mysqldb-python-mysql-and-os-x-a-match-made-in-satans-bum/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ygarten</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-18853</link>
		<dc:creator>ygarten</dc:creator>
		<pubDate>Fri, 14 Aug 2009 22:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-18853</guid>
		<description>This was a great posting, and ultimately the instructions on this page saved me:
http://birdhouse.org/blog/2009/02/21/python-mysql-connections-on-mac-os/

Explanation:
I had the same problem (errors) as David Morton, after following Kearny&#039;s advice.

I tried downgrading to 1.2.2, then 1.2.1 using that advice, and still got:
&gt;&gt;&gt; import MySQLdb
Traceback (most recent call last):
  File &quot;&quot;, line 1, in 
  File &quot;MySQLdb/__init__.py&quot;, line 19, in 
    import _mysql
ImportError: dynamic module does not define init function (init_mysql)


Finally, found that this error:
Re: ImportError: module does not define init function (init_mysql)

As reported elsewhere by Leon Harris, gives clues towards using darwinports to fix it:

&quot;I was stuck with this error for absolutely ages. I found that using the py25-mysql.darwinports.com port of python mysql connector fixed the problem. Which was occurring due to a problematic _mysql.so file in site-packages.&quot;

Googled that, and found solution by following:

http://birdhouse.org/blog/2009/02/21/python-mysql-connections-on-mac-os/


And it works!!!</description>
		<content:encoded><![CDATA[<p>This was a great posting, and ultimately the instructions on this page saved me:<br />
<a href="http://birdhouse.org/blog/2009/02/21/python-mysql-connections-on-mac-os/" rel="nofollow">http://birdhouse.org/blog/2009/02/21/python-mysql-connections-on-mac-os/</a></p>
<p>Explanation:<br />
I had the same problem (errors) as David Morton, after following Kearny&#8217;s advice.</p>
<p>I tried downgrading to 1.2.2, then 1.2.1 using that advice, and still got:<br />
&gt;&gt;&gt; import MySQLdb<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 />
ImportError: dynamic module does not define init function (init_mysql)</p>
<p>Finally, found that this error:<br />
Re: ImportError: module does not define init function (init_mysql)</p>
<p>As reported elsewhere by Leon Harris, gives clues towards using darwinports to fix it:</p>
<p>&#8220;I was stuck with this error for absolutely ages. I found that using the py25-mysql.darwinports.com port of python mysql connector fixed the problem. Which was occurring due to a problematic _mysql.so file in site-packages.&#8221;</p>
<p>Googled that, and found solution by following:</p>
<p><a href="http://birdhouse.org/blog/2009/02/21/python-mysql-connections-on-mac-os/" rel="nofollow">http://birdhouse.org/blog/2009/02/21/python-mysql-connections-on-mac-os/</a></p>
<p>And it works!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laptop ekran</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16919</link>
		<dc:creator>laptop ekran</dc:creator>
		<pubDate>Fri, 15 May 2009 14:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16919</guid>
		<description>thank you good share</description>
		<content:encoded><![CDATA[<p>thank you good share</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clark</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16610</link>
		<dc:creator>Clark</dc:creator>
		<pubDate>Thu, 30 Apr 2009 00:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16610</guid>
		<description>http://sourceforge.net/forum/message.php?msg_id=5808948

This link fixed my issue above.

It&#039;s also good to make sure that if you build your own version of Python that you update all of the SymLinks.</description>
		<content:encoded><![CDATA[<p><a href="http://sourceforge.net/forum/message.php?msg_id=5808948" rel="nofollow">http://sourceforge.net/forum/message.php?msg_id=5808948</a></p>
<p>This link fixed my issue above.</p>
<p>It&#8217;s also good to make sure that if you build your own version of Python that you update all of the SymLinks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clark</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16596</link>
		<dc:creator>Clark</dc:creator>
		<pubDate>Wed, 29 Apr 2009 07:29:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16596</guid>
		<description>OSX Server 10.5... any ideas.  I get the following warning.  Is that a bad thing or is this a harmless warning.

Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) 
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] 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/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.2-py2.6-macosx-10.3-fat.egg/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
&gt;&gt;&gt;</description>
		<content:encoded><![CDATA[<p>OSX Server 10.5&#8230; any ideas.  I get the following warning.  Is that a bad thing or is this a harmless warning.</p>
<p>Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)<br />
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] 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/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.2-py2.6-macosx-10.3-fat.egg/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated<br />
&gt;&gt;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: no</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16588</link>
		<dc:creator>no</dc:creator>
		<pubDate>Tue, 28 Apr 2009 21:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16588</guid>
		<description>Correction, simply doesn&#039;t work with MAMP. Instructions work fine with 10.5.6 once I junked MAMP.</description>
		<content:encoded><![CDATA[<p>Correction, simply doesn&#8217;t work with MAMP. Instructions work fine with 10.5.6 once I junked MAMP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: no</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16586</link>
		<dc:creator>no</dc:creator>
		<pubDate>Tue, 28 Apr 2009 20:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16586</guid>
		<description>Simply doesn&#039;t work on 10.5.6</description>
		<content:encoded><![CDATA[<p>Simply doesn&#8217;t work on 10.5.6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kvh</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16437</link>
		<dc:creator>kvh</dc:creator>
		<pubDate>Fri, 24 Apr 2009 05:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16437</guid>
		<description>f ing brilliant man! thanks!</description>
		<content:encoded><![CDATA[<p>f ing brilliant man! thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael G.</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16356</link>
		<dc:creator>Michael G.</dc:creator>
		<pubDate>Tue, 21 Apr 2009 19:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16356</guid>
		<description>In what directory (aka &quot;folder&quot;) should I start this process?  The download drops the tar.gz file on my desktop, but that seems an odd place to start an installation.

Thank you!

Michael</description>
		<content:encoded><![CDATA[<p>In what directory (aka &#8220;folder&#8221;) should I start this process?  The download drops the tar.gz file on my desktop, but that seems an odd place to start an installation.</p>
<p>Thank you!</p>
<p>Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jordi</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-16341</link>
		<dc:creator>jordi</dc:creator>
		<pubDate>Tue, 21 Apr 2009 13:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-16341</guid>
		<description>all ok, but the build does not work. Any clue?

olea:MySQL-python-1.2.2 jvilla$ sudo python setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.3-i386-2.5
copying _mysql_exceptions.py -&gt; build/lib.macosx-10.3-i386-2.5
creating build/lib.macosx-10.3-i386-2.5/MySQLdb
copying MySQLdb/__init__.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
copying MySQLdb/converters.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
copying MySQLdb/connections.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
copying MySQLdb/cursors.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
copying MySQLdb/release.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
copying MySQLdb/times.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
creating build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/__init__.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/CR.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/ER.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants
running build_ext
building &#039;_mysql&#039; extension
creating build/temp.macosx-10.3-i386-2.5
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,&#039;final&#039;,0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-i386-2.5/_mysql.o -g -Os -arch x86_64 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
                 from pymemcompat.h:10,
                 from _mysql.c:29:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:761:2: error: #error &quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&quot;
In file included from _mysql.c:35:
/usr/local/mysql/include/my_config.h:1240:1: warning: &quot;SIZEOF_LONG&quot; redefined
In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
                 from pymemcompat.h:10,
                 from _mysql.c:29:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:811:1: warning: this is the location of the previous definition
error: command &#039;gcc&#039; failed with exit status 1</description>
		<content:encoded><![CDATA[<p>all ok, but the build does not work. Any clue?</p>
<p>olea:MySQL-python-1.2.2 jvilla$ sudo python setup.py build<br />
running build<br />
running build_py<br />
creating build<br />
creating build/lib.macosx-10.3-i386-2.5<br />
copying _mysql_exceptions.py -&gt; build/lib.macosx-10.3-i386-2.5<br />
creating build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
copying MySQLdb/__init__.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
copying MySQLdb/converters.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
copying MySQLdb/connections.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
copying MySQLdb/cursors.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
copying MySQLdb/release.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
copying MySQLdb/times.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
creating build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
copying MySQLdb/constants/__init__.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
copying MySQLdb/constants/CR.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
copying MySQLdb/constants/FIELD_TYPE.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
copying MySQLdb/constants/ER.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
copying MySQLdb/constants/FLAG.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
copying MySQLdb/constants/REFRESH.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
copying MySQLdb/constants/CLIENT.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb/constants<br />
running build_ext<br />
building &#8216;_mysql&#8217; extension<br />
creating build/temp.macosx-10.3-i386-2.5<br />
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,&#8217;final&#8217;,0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-i386-2.5/_mysql.o -g -Os -arch x86_64 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL<br />
In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,<br />
                 from pymemcompat.h:10,<br />
                 from _mysql.c:29:<br />
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:761:2: error: #error &#8220;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&#8221;<br />
In file included from _mysql.c:35:<br />
/usr/local/mysql/include/my_config.h:1240:1: warning: &#8220;SIZEOF_LONG&#8221; redefined<br />
In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,<br />
                 from pymemcompat.h:10,<br />
                 from _mysql.c:29:<br />
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:811:1: warning: this is the location of the previous definition<br />
error: command &#8216;gcc&#8217; failed with exit status 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-15649</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sun, 05 Apr 2009 15:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-15649</guid>
		<description>Still getting this error: 
 
ImportError: dynamic module does not define init function (init_mysql) 
 
Traceback (most recent call last): 
File &quot;/Users/me/Applications/python/test/src/test.py&quot;, line 17, in  
import MySQLdb 
File &quot;build/bdist.macosx-10.5-i386/egg/MySQLdb/__init__.py&quot;, line 19, in  
File &quot;build/bdist.macosx-10.5-i386/egg/_mysql.py&quot;, line 7, in  
File &quot;build/bdist.macosx-10.5-i386/egg/_mysql.py&quot;, line 6, in __bootstrap__ 
ImportError: dynamic module does not define init function (init_mysql) 
 
I&#039;ve tried multiple options to get MySQLdb working on 10.5.6: 
 
- http://mysql-python.blogspot.com/2008/03/i-am-not-dead.html 
 
- http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/ 
 
... and I&#039;ve tried Mac Python 3.0. 
 
I seem to be in a Catch-22 -- the version 2.3/2.5 Pythons that comes with 10.5 won&#039;t work, the 3.0 Python can&#039;t find the MySQLdb package at all -- and presumably will also miss any other (add-on) local packages I&#039;ve installed. 
 
Is there any other alternative to dumping out the MySQL data into a suitable flat file format and sucking it back into a python dictionary -- primitive, but probably will work for now -- though I&#039;ll pay a price every time the data in the database changes. 
 
Anyone have a MySQLdb fix that works for OS X 10.5.6? 
 
I admit I&#039;m surprised that python, which has been so robust in having libraries and methods for so many things, hasn&#039;t got something as simple as a working Mac OS X MySQL interface. Heck, even Perl has multiple to chose from. 
 
Thanks for any assistance ...</description>
		<content:encoded><![CDATA[<p>Still getting this error: </p>
<p>ImportError: dynamic module does not define init function (init_mysql) </p>
<p>Traceback (most recent call last):<br />
File &#8220;/Users/me/Applications/python/test/src/test.py&#8221;, line 17, in<br />
import MySQLdb<br />
File &#8220;build/bdist.macosx-10.5-i386/egg/MySQLdb/__init__.py&#8221;, line 19, in<br />
File &#8220;build/bdist.macosx-10.5-i386/egg/_mysql.py&#8221;, line 7, in<br />
File &#8220;build/bdist.macosx-10.5-i386/egg/_mysql.py&#8221;, line 6, in __bootstrap__<br />
ImportError: dynamic module does not define init function (init_mysql) </p>
<p>I&#8217;ve tried multiple options to get MySQLdb working on 10.5.6: </p>
<p>- <a href="http://mysql-python.blogspot.com/2008/03/i-am-not-dead.html" rel="nofollow">http://mysql-python.blogspot.com/2008/03/i-am-not-dead.html</a> </p>
<p>- <a href="http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/" rel="nofollow">http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/</a> </p>
<p>&#8230; and I&#8217;ve tried Mac Python 3.0. </p>
<p>I seem to be in a Catch-22 &#8212; the version 2.3/2.5 Pythons that comes with 10.5 won&#8217;t work, the 3.0 Python can&#8217;t find the MySQLdb package at all &#8212; and presumably will also miss any other (add-on) local packages I&#8217;ve installed. </p>
<p>Is there any other alternative to dumping out the MySQL data into a suitable flat file format and sucking it back into a python dictionary &#8212; primitive, but probably will work for now &#8212; though I&#8217;ll pay a price every time the data in the database changes. </p>
<p>Anyone have a MySQLdb fix that works for OS X 10.5.6? </p>
<p>I admit I&#8217;m surprised that python, which has been so robust in having libraries and methods for so many things, hasn&#8217;t got something as simple as a working Mac OS X MySQL interface. Heck, even Perl has multiple to chose from. </p>
<p>Thanks for any assistance &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lyle</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-14711</link>
		<dc:creator>Lyle</dc:creator>
		<pubDate>Fri, 20 Mar 2009 20:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-14711</guid>
		<description>I got pages and pages of errors when I tried to build.

Thanks for trying.</description>
		<content:encoded><![CDATA[<p>I got pages and pages of errors when I tried to build.</p>
<p>Thanks for trying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Clark</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-13420</link>
		<dc:creator>Stephen Clark</dc:creator>
		<pubDate>Thu, 26 Feb 2009 06:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-13420</guid>
		<description>:-(

OSX 10.5.6
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) 



&gt;&gt;&gt; import MySQLdb
/Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.5-i386.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.5-i386.egg/_mysql.pyc, but /Users/stephenkennedy-clark/Desktop/MySQL-python-1.2.2 is being added to sys.path
  import sys, pkg_resources, imp
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.5-i386/egg/_mysql.py&quot;, line 7, in 
  File &quot;build/bdist.macosx-10.5-i386/egg/_mysql.py&quot;, line 6, in __bootstrap__
ImportError: dynamic module does not define init function (init_mysql)</description>
		<content:encoded><![CDATA[<p> <img src='http://www.mangoorange.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>OSX 10.5.6<br />
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) </p>
<p>&gt;&gt;&gt; import MySQLdb<br />
/Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.5-i386.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.5-i386.egg/_mysql.pyc, but /Users/stephenkennedy-clark/Desktop/MySQL-python-1.2.2 is being added to sys.path<br />
  import sys, pkg_resources, imp<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.5-i386/egg/_mysql.py&#8221;, line 7, in<br />
  File &#8220;build/bdist.macosx-10.5-i386/egg/_mysql.py&#8221;, line 6, in __bootstrap__<br />
ImportError: dynamic module does not define init function (init_mysql)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heather</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-13246</link>
		<dc:creator>Heather</dc:creator>
		<pubDate>Fri, 20 Feb 2009 17:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-13246</guid>
		<description>Thank you, thank you, thank you, thank you.

Thank you.</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you, thank you.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sampath Girish Munagala</title>
		<link>http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/comment-page-1/#comment-12766</link>
		<dc:creator>Sampath Girish Munagala</dc:creator>
		<pubDate>Tue, 10 Feb 2009 12:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mangoorange.com/?p=182#comment-12766</guid>
		<description>Hi Friend,
              I got some problem regarding building &#039;setup.py&#039; file. I am pasting the following error which i&#039;ve got at the time of building and installing file.


Sampath:MySQL-python-1.2.2 venkatarampey$ sudo python setup.py build
running build
running build_py
copying MySQLdb/release.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
running build_ext
building &#039;_mysql&#039; extension
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,&#039;final&#039;,0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-i386-2.5/_mysql.o -g -Os -arch i386 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
unable to execute gcc: No such file or directory
error: command &#039;gcc&#039; failed with exit status 1

Sampath:MySQL-python-1.2.2 venkatarampey$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file &#039;MySQL_python.egg-info/SOURCES.txt&#039;
reading manifest template &#039;MANIFEST.in&#039;
writing manifest file &#039;MySQL_python.egg-info/SOURCES.txt&#039;
installing library code to build/bdist.macosx-10.3-i386/egg
running install_lib
running build_py
copying MySQLdb/release.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb
running build_ext
building &#039;_mysql&#039; extension
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,&#039;final&#039;,0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-i386-2.5/_mysql.o -g -Os -arch i386 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
unable to execute gcc: No such file or directory
error: command &#039;gcc&#039; failed with exit status 1

How can i solve this??? Please help me out....


Sampath Girish.M</description>
		<content:encoded><![CDATA[<p>Hi Friend,<br />
              I got some problem regarding building &#8217;setup.py&#8217; file. I am pasting the following error which i&#8217;ve got at the time of building and installing file.</p>
<p>Sampath:MySQL-python-1.2.2 venkatarampey$ sudo python setup.py build<br />
running build<br />
running build_py<br />
copying MySQLdb/release.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
running build_ext<br />
building &#8216;_mysql&#8217; extension<br />
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,&#8217;final&#8217;,0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-i386-2.5/_mysql.o -g -Os -arch i386 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL<br />
unable to execute gcc: No such file or directory<br />
error: command &#8216;gcc&#8217; failed with exit status 1</p>
<p>Sampath:MySQL-python-1.2.2 venkatarampey$ sudo python setup.py install<br />
running install<br />
running bdist_egg<br />
running egg_info<br />
writing MySQL_python.egg-info/PKG-INFO<br />
writing top-level names to MySQL_python.egg-info/top_level.txt<br />
writing dependency_links to MySQL_python.egg-info/dependency_links.txt<br />
reading manifest file &#8216;MySQL_python.egg-info/SOURCES.txt&#8217;<br />
reading manifest template &#8216;MANIFEST.in&#8217;<br />
writing manifest file &#8216;MySQL_python.egg-info/SOURCES.txt&#8217;<br />
installing library code to build/bdist.macosx-10.3-i386/egg<br />
running install_lib<br />
running build_py<br />
copying MySQLdb/release.py -&gt; build/lib.macosx-10.3-i386-2.5/MySQLdb<br />
running build_ext<br />
building &#8216;_mysql&#8217; extension<br />
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,&#8217;final&#8217;,0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-i386-2.5/_mysql.o -g -Os -arch i386 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL<br />
unable to execute gcc: No such file or directory<br />
error: command &#8216;gcc&#8217; failed with exit status 1</p>
<p>How can i solve this??? Please help me out&#8230;.</p>
<p>Sampath Girish.M</p>
]]></content:encoded>
	</item>
</channel>
</rss>
