MySQLdb for Python 2.6 on win32

273 views
Skip to first unread message

Technicalbard

unread,
Feb 8, 2009, 5:46:30 PM2/8/09
to Django users
If you are looking for this, I compiled it using MSVC++2008 Express,
against MySQL 5.0.67 using Python 2.6 and the MySQLdb 1.2.2 source:

http://www.technicalbard.com/files/MySQL-python-1.2.2.win32-py2.6.exe

Hope it helps anyone who was looking.

PeturOrn

unread,
Feb 11, 2009, 10:39:11 AM2/11/09
to Django users
This worked so far. Now I have this on my C:\Python26\Lib\site-
packages directory:

<DIR> MySQLdb
<DIR> MySQL_python-1.2.2-py2.6.egg-info
_mysql.pyd
_mysql_exceptions.py
_mysql_exceptions.pyc
_mysql_exceptions.pyo
...

Next I tried : import MySQLdb and get this :

Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
import MySQLdb
File "C:\Python26\Lib\site-packages\MySQLdb\__init__.py", line 34,
in <module>
from sets import ImmutableSet
File "C:\Python26\lib\sets.py", line 85, in <module>
stacklevel=2)
File "C:\Python26\lib\warnings.py", line 29, in _show_warning
file.write(formatwarning(message, category, filename, lineno,
line))
TypeError: idle_formatwarning_subproc() takes exactly 4 arguments (5
given)

I am a beginner in python - what shall I do to get MySQL working with
python and django ?

Thanks - Petur Orn

On Feb 8, 10:46 pm, Technicalbard <rodwe...@gmail.com> wrote:
> If you are looking for this, I compiled it using MSVC++2008 Express,
> against MySQL 5.0.67 usingPython2.6and theMySQLdb1.2.2 source:

Alex Ehlke

unread,
Apr 4, 2009, 1:31:14 AM4/4/09
to Django users
THANK YOU SO MUCH. Saved me a lot of time and frustration.

On Feb 8, 6:46 pm, Technicalbard <rodwe...@gmail.com> wrote:
> If you are looking for this, I compiled it using MSVC++2008 Express,
> against MySQL 5.0.67 using Python2.6and theMySQLdb1.2.2 source:
Reply all
Reply to author
Forward
0 new messages