On Sat, Aug 31, 2013 at 6:38 PM, John Smith <cantinaderecuer...@yahoo.com> wrote: > Hi; > Since there is no list for MySQLdb, I'm hoping you can help me. I have > installed, de-installed and reinstalled this s/w and MySQL itself on my Win8 > box. However, when I go to use it from a script, I get the following error: > > "C:\Python27\lib\site-packages\MySQLdb\__init.py__", line 27 in <module> > import _mysql > > ImportError: DLL load failed: %1 is not valid Win32 application. > > Well, I'm running Win8 which is 64-bit, but I'm pretty sure it runs 32 as > well, right? Python 27, MySQL 5.5.
Do your Python and your MySQLdb match? I haven't confirmed, but I'm pretty sure you'll have problems if you have a 32-bit Python with a 64-bit mysqldb DLL, or vice versa. ChrisA -- http://mail.python.org/mailman/listinfo/python-list