Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; '64-bit': 0.07; 'error:': 0.07; 'importerror:': 0.07; '32-bit': 0.09; 'failed:': 0.09; 'runs': 0.10; 'python': 0.11; '64-bit,': 0.16; 'dll,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hi;': 0.16; 'reinstalled': 0.16; 'script,': 0.16; 'subject:Problem': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'import': 0.22; 'aug': 0.22; 'load': 0.23; '31,': 0.24; 'dll': 0.24; "haven't": 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'running': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'right?': 0.36; 'skip:" 50': 0.36; 'vice': 0.36; 'list': 0.37; 'problems': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'itself': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'john': 0.61; "you'll": 0.62; 'smith': 0.68; 'hoping': 0.75; 'confirmed,': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=BtV9ObMxoLYGRSkORz1zaS0s3zvvwrCQhuQRLNQTTQg=; b=bFYNuX9anPQGyX9FdjwVflgw9+Otj+b8GFfn53pLJIsnwBHSV2SC3Dkptd9SPdRC5+ 59VPimFddtjzRRQOJuIqsPN8RfWoKxbw8cDK/NXa2hRaDn6W+0IGBnREovXjHzq8TANN oePkzlq2ONktKTD3YIJANHbQDG4B+lz05PXJX4DBNIbtvZa+ftHsdbGy159AqY60rQWj y/Xx32pT7DNdmQiBiC0HhHiX/bWKhUPWNa+ZqbPABJrgmERmFfpCt4BMcikyjEKsbz4P CxBAiu0szA4vPbb3846SmIHhnMM3i9ZceQAZRmm2g+d1ldmSEkI2xUsIUHKHOJ3xpUwR FluA== MIME-Version: 1.0 X-Received: by 10.52.227.6 with SMTP id rw6mr10890969vdc.19.1377962331167; Sat, 31 Aug 2013 08:18:51 -0700 (PDT) In-Reply-To: <1377938282.78528.YahooMailBasic@web194904.mail.sg3.yahoo.com> References: <1377938282.78528.YahooMailBasic@web194904.mail.sg3.yahoo.com> Date: Sun, 1 Sep 2013 01:18:51 +1000 Subject: Re: MySQLdb Problem From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377962339 news.xs4all.nl 15899 [2001:888:2000:d::a6]:53764 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53364 On Sat, Aug 31, 2013 at 6:38 PM, John Smith 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 > 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