Django Error Loading Mysqldb Module Dll Load Failed
Contents |
here for a quick overview of the site Help Center Detailed answers to any django error loading mysqldb module no module named mysqldb questions you might have Meta Discuss the workings and policies of django core exceptions improperlyconfigured error loading mysqldb module this site About Us Learn more about Stack Overflow the company Business Learn more about
Raise Improperlyconfigured Error Loading Mysqldb Module S E
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow
Raise Improperlyconfigured Error Loading Mysqldb Module Se
is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up MySQLdb import error on windows 7 + Django up vote 0 down vote favorite I installed python 2.6 and MySQL-python-1.2.2.win32-py2.6 and created a new project using the command django-admin.py startproject mysite error loading psycopg2 module dll load failed and it successfully created the project and I could run it.But when I edit mysite/settings.py file to use MySQLdb and run it again,it says Validating models... Unhandled exception in thread started by bound method Command.inner_run of dja ngo.contrib.staticfiles.management.commands.runserver.Command object at 0x02BFCB raise ImproperlyConfigured(Error loading MySQLdb module:) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: DLL l oad failed: The specified module could not be found. I tried searching all net and couldn't identify the problem.Is it to do with setting some environment variables? Can anyone please help me about this? python django mysql-python share|improve this question edited Apr 15 '15 at 17:19 karthikr 52.1k1084105 asked Feb 24 '13 at 14:33 vinay singri 114519 You forgot something there.. –Martijn Pieters♦ Feb 24 '13 at 14:34 Sorry!! Added it now.Thanks!! –vinay singri Feb 24 '13 at 14:37 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted If you fire up
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Error Loading Psycopg2 Module Dll Load Failed The Specified Module Could Not Be Found
the company Business Learn more about hiring developers or posting ads with us Stack error loading psycopg2 module dll load failed 1 is not a valid win32 application Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of importerror no module named 'mysqldb' python 3 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Debugging Django project problem up vote 0 down vote favorite I asked this question before, but had no http://stackoverflow.com/questions/15052734/mysqldb-import-error-on-windows-7-django replies, maybe I wasn't so clear. I'm trying to debug a django project using MySQL database. If I run the admin or trying to use the shell to communicate to the data base every thing is well and I can do every thing. I installed MySQLdb for Python 2.6. I installed PyDev on my Apatana studio. Configured the Debugging with runserver 8001 --noreload. When I start debugging , When I arrive to http://stackoverflow.com/questions/1998058/debugging-django-project-problem the following code in C:\Python26\Lib\site-packages\django\db\backends\mysql\base.py try: import MySQLdb as Database except ImportError, e: from django.core.exceptions import ImproperlyConfigured raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) I get an import error : django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: DLL load failed: The specified module could not be found. I trying to ge more deeply with the import MySQLdb as Database line , it goes to the C:\Python26\Lib\site-packages\MySQLdb__init__.py and fail in the line import _mysql. I can't understand the problem. When running the Django admin every thing is ok, but with debugging it fails to work. Any help please. Thanks in advance. django share|improve this question edited Jan 4 '10 at 7:48 Seth 25.7k55497 asked Jan 4 '10 at 7:43 Wasim 70411330 Which version of django and MySQLdb are you using? –sharjeel Jan 4 '10 at 7:56 What happens if you just do 'import MySQLdb' in python? is DATABASE_ENGINE set to 'mysql'? –Orange Box Jan 4 '10 at 11:16 do you really need to import MySQLdb ? If you need to use the same connection as defined in django database settings, you'd better use : from django.db import connection cursor = connection.cursor() –jujule Jan 4 '10 at 12:13 is mysqldb in your python path when running through Aptana? –Brando
the quirks of the universe. View my complete profile Contact @twigsama: Follow me (and my side projects) or find me online at #genscripts hanging out with http://twigstechtips.blogspot.com/2011/04/python-add-mysql-support-on-windows.html a bunch of other nerds. If you've found one or more of my blog posts helpful, why not say thanks by buying me a coffee or beer? My Pet Projects ThatAwesomeShirt! Diablo II Runewords (Android app) Code Peeker (Android app) Moustachify Everything (Android app) Slowpoke Blitz! (Android game) Fine Food (Android app) Diablo 3 Max Stats (Android app) Windows 7: Remove Explorer Breadcrumbs Windows 7: Show "All error loading Programs" in Start Menu Automatically Links chmod644 Mattoc IM.NJS peevo yuggles DCX Labels .net (3) 3ds (1) acdsee (2) acma (2) acrobat (6) adblock (1) adobe (7) analytics (1) android (138) apache (4) apple (5) ati (6) atomic bomberman (1) australia (4) bash (10) batch (3) belkin (1) billion (1) Blizzard (1) blogger (5) Bonjour (1) bulletstorm (2) C# (4) C++ (17) canon (1) car (2) child pornography error loading mysqldb (3) cmder (1) conemu (1) cpanel (1) css (8) daemon tools (1) dd-wrt (2) dell (6) diablo 2 (2) diablo 3 (2) digg (1) digsby (1) disable (4) disqus (3) django (96) dos (4) drupal (17) dual action (1) dyndns (1) e5823 (1) eclipse (20) eee pc (2) emulation (1) esi (2) eventghost (1) excel (4) expandrive (2) facebook (17) firefox (38) flash (1) flickr (1) freedns (1) ftp (3) funny (7) genymotion (1) git (20) github (3) gmail (1) google plus (1) greasemonkey (2) hackintosh (1) harddrive (5) hardware (11) honda jazz (1) hotmail (1) hp (1) html (3) htpc (3) https (1) internet censorship (5) internet explorer (7) java (7) javascript (22) jquery (18) jquery ui (2) kodi (3) left 4 dead 2 (2) linux (35) logic (2) logitech (2) Lotus Notes (5) m1330 (4) mac osx (4) malware (7) map network drive (1) Marvel Ultimate Alliance (1) maven (6) megaman x7 (1) microsoft security essentials (1) migrate (1) miphone manager (1) mirc (2) miui (1) mobile development (2) mootools (2) msn (5) MyBB (1) mysql (3) navman (2) Need For Speed (1) nero (2) netgear (3) netlimiter (1) nexus 7 (2) nginx (1) nintendo 3ds & 3