No MySQL for Python 2.5 on Windows?

It would appear that if you want to run mysql-python on Windows with binaries compiled for Python 2.5 you are out of luck. If you use the 2.4 installer on SourceForge, you get the following error:

mysql-python install error

According to some forum threads, there appears to be some disagreement between Python and MySQL as to who’s responsibility it is to get it working with Python 2.5. And both that thread and others say that “everybody is running on glue code from one guy on Sourceforge, and he’s having problems keeping up.” And it sounds like getting the older releases to work is problematic as well.

Definitely an unfortunate situation. If someone has figured out how to get this to work, I’d be very anxious to hear about it. I’m assuming I’m missing something simple here.

Otherwise… what’s the alternative? Switch to PostgreSQL perhaps?

Update: I took a shot at compiling mysql-python on Windows…

6 Responses to “No MySQL for Python 2.5 on Windows?”

  1. paryl Says:

    Yeah, this annoyed me too, but it’s life. I tried the patch from SF and no matter what I did it refused to compile. The only real choice (assuming you want to stay with MySQL) is to stay with 2.4.

    That being said, I’ve personally made the jump to running Linux everywhere, and there are no issues with MySQLdb here. It’s funny, a bunch of things came to a head all at once… graphics programs, filesystem limitations, and libraries like MySQLdb not working. I made the switch and found out it was apparently the perfect time. Just a thought… :)

  2. John Says:

    I actually attempted to load Linux on the new desktop, but between some minor audio issues and problems getting all my games to work… I went back to Windows.

    Eventually I’ll make the switch to Linux on the desktop…. but for now it’s only on my servers and MythTV boxen. :)

  3. John Says:

    Hey Paryl,

    I just checked out your website (Technobabbler). You’ve got some good content on there… keep up the good work!

  4. paryl Says:

    Thanks dude! Just so you know, I’ve had your site on my news reader for prolly 6 months now. Good stuff!

  5. Brandon Says:

    I see there’s a proposed sprint at PyCon this year to deal with the Python 2.5/MySQL breakage.

  6. import this. » Blog Archive » PyCon mysql-python sprint Says:

    [...] No MySQL for Python 2.5 on Windows? [...]

Leave a Reply