Importerror DLL Load failed
%1 is not a valid Win32
application error in python
mysql
Haris NP
haris@baabtra.com
www.faceb...
Scenario
• OS: Windows 8 (64 Bit )
• Installed python 64 bit OS
• Installed mysql - python 32 bit (MySQLpython-1.2.4.win32...
Error
• Go to the python command line and type
import MySQLdb
Solution
• Uninstall Python 64 bit and MySQL-Python
using control panel
• Install Python 32 bit
http://www.python.org/ftp/...
• Now again type import MySQLdb and you will
not get an error.
• The author takes corporate trainings in
Android and Python. In case if your
organization needs training, please connect
...
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.

Thanks in advance.
www.baabtra.c...
Importerror  dll load failed  is not a valid win32 application Python MySQL
Importerror  dll load failed  is not a valid win32 application Python MySQL
Upcoming SlideShare
Loading in …5
×

Importerror dll load failed is not a valid win32 application Python MySQL

4,120 views

Published on

This PPT explains the error which you might receive when trying to connect from Python to MySQL. This will solve the problem for Windows 8 64 Bit operating system.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,120
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Importerror dll load failed is not a valid win32 application Python MySQL

  1. 1. Importerror DLL Load failed %1 is not a valid Win32 application error in python mysql Haris NP haris@baabtra.com www.facebook.com/haris.np 9 twitter.com/np_haris in.linkedin.com/in/harisnp
  2. 2. Scenario • OS: Windows 8 (64 Bit ) • Installed python 64 bit OS • Installed mysql - python 32 bit (MySQLpython-1.2.4.win32-py2.7) There is no proper 64 bit MySQL- Python driver which are free (At least I couldn’t find it by a simple search !)
  3. 3. Error • Go to the python command line and type import MySQLdb
  4. 4. Solution • Uninstall Python 64 bit and MySQL-Python using control panel • Install Python 32 bit http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi (Please note that you should not install 64 bit version of the Python. If you install, you will get an error that MySQL is not a valid Win32 application). The idea is if you are using Python and MySQL, then you should use both Python and MySQL 32 bit. The 32 bit version of python will run in 64 bit operating system. • Install MySQL-python-1.2.4.win32-py2.7
  5. 5. • Now again type import MySQLdb and you will not get an error.
  6. 6. • The author takes corporate trainings in Android and Python. In case if your organization needs training, please connect through www.massbaab.com/baabtra
  7. 7. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baab te.com

×