I'm trying to install MySQL-python (MySQLdb) to start on the Django Project. Can anyone help me below. Many thanks.
I'm running on Mac OSX (snow leapord, 10.6.4) Python 2.7 and MySQL 5.1 and MySQLdb 1.2.3.
I got below error because I tried to compile it in 32-bit.
I got the error at such:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.5-fat3/egg/MySQLdb/__init__.py", line 19, in <module>
File "build/bdist.macosx-10.5-fat3/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.5-fat3/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/mickeyckm/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.5-fat3.egg-tmp/_mysql.so, 2): Symbol not found: _mysql_affected_rows
Referenced from: /Users/mickeyckm/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.5-fat3.egg-tmp/_mysql.so
Expected in: flat namespace
in /Users/mickeyckm/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.5-fat3.egg-tmp/_mysql.so