Re: No module named MySQLdb
I'm not sure if PyMySQL is compatible, but it's not tested by the Django team. I'd use mysqlclient as documented: https://docs.djangoproject.com/en/stable/ref/databases/#mysql-db-api-drivers On Tuesday, September 20, 2016 at 11:18:08 AM UTC-4, Alessandro Madruga wrote: > > pip install MySQL-python > > On Tue, Sep 20, 2016 at 12:12 PM, Carlos Andre > wrote: > >> 1º install setuptools; >> 2º install PyMySQL; >> >> >> 1º --> https://pypi.python.org/pypi/setuptools >> 2º --> https://github.com/PyMySQL/PyMySQL >> >> >> 2016-09-20 11:01 GMT-03:00 fossildoc >: >> >>> I am a newbie to Django. I am running Django 1.10.1, Python 3.5.2, and >>> MySQL server 5.7.15. When I run migrate, I get the message "No module named >>> MySQLdb". There are various posts which say that MySQLdb is not supported >>> by Python 3, and there are a couple of posts which offer solutions, but >>> only for older versions of Django. Any help, please. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users...@googlegroups.com . >>> To post to this group, send email to django...@googlegroups.com >>> . >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/b0a88c18-faa9-4d0e-ac7b-1a8be1fb8070%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/django-users/b0a88c18-faa9-4d0e-ac7b-1a8be1fb8070%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users...@googlegroups.com . >> To post to this group, send email to django...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAA8yBMxrhHZfw5j_agwUD_24%2BFeTqU3dz6mO5E1Zm0gqeEN4Vw%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/django-users/CAA8yBMxrhHZfw5j_agwUD_24%2BFeTqU3dz6mO5E1Zm0gqeEN4Vw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > ,= ,-_-. =. [] Alessandro Madruga Correia > ((_/)o o(\_)) [http://counter.li.org] Debian User# 342751 >`-'(. .)`-'"O fanatismo é a única forma de força de vontade >\_/acessível aos fracos." (Friedrich Nietzsche) > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b5c88fc1-c7a7-4c04-b78a-d060eade0916%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: No module named MySQLdb
pip install MySQL-python On Tue, Sep 20, 2016 at 12:12 PM, Carlos Andre wrote: > 1º install setuptools; > 2º install PyMySQL; > > > 1º --> https://pypi.python.org/pypi/setuptools > 2º --> https://github.com/PyMySQL/PyMySQL > > > 2016-09-20 11:01 GMT-03:00 fossildoc : > >> I am a newbie to Django. I am running Django 1.10.1, Python 3.5.2, and >> MySQL server 5.7.15. When I run migrate, I get the message "No module named >> MySQLdb". There are various posts which say that MySQLdb is not supported >> by Python 3, and there are a couple of posts which offer solutions, but >> only for older versions of Django. Any help, please. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/django-users/b0a88c18-faa9-4d0e-ac7b-1a8be1fb8070%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/b0a88c18-faa9-4d0e-ac7b-1a8be1fb8070%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CAA8yBMxrhHZfw5j_agwUD_24%2BFeTqU3dz6mO5E1Zm0gqeEN4Vw% > 40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAA8yBMxrhHZfw5j_agwUD_24%2BFeTqU3dz6mO5E1Zm0gqeEN4Vw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- ,= ,-_-. =. [] Alessandro Madruga Correia ((_/)o o(\_)) [http://counter.li.org] Debian User# 342751 `-'(. .)`-'"O fanatismo é a única forma de força de vontade \_/acessível aos fracos." (Friedrich Nietzsche) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOofabd8H2DCLRmbHJOo1Vyyw-YHmBc1-Kf7o1N910wU9u4AYg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: No module named MySQLdb
1º install setuptools; 2º install PyMySQL; 1º --> https://pypi.python.org/pypi/setuptools 2º --> https://github.com/PyMySQL/PyMySQL 2016-09-20 11:01 GMT-03:00 fossildoc : > I am a newbie to Django. I am running Django 1.10.1, Python 3.5.2, and > MySQL server 5.7.15. When I run migrate, I get the message "No module named > MySQLdb". There are various posts which say that MySQLdb is not supported > by Python 3, and there are a couple of posts which offer solutions, but > only for older versions of Django. Any help, please. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/b0a88c18-faa9-4d0e-ac7b-1a8be1fb8070%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b0a88c18-faa9-4d0e-ac7b-1a8be1fb8070%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA8yBMxrhHZfw5j_agwUD_24%2BFeTqU3dz6mO5E1Zm0gqeEN4Vw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
No module named MySQLdb
I am a newbie to Django. I am running Django 1.10.1, Python 3.5.2, and MySQL server 5.7.15. When I run migrate, I get the message "No module named MySQLdb". There are various posts which say that MySQLdb is not supported by Python 3, and there are a couple of posts which offer solutions, but only for older versions of Django. Any help, please. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b0a88c18-faa9-4d0e-ac7b-1a8be1fb8070%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
On Tue, Nov 20, 2012 at 2:14 PM, Cj Taylor wrote: > Correct, Sergiy. As I fiddle with this nightly, the core of my issue seems > to be that mysqldb is not yet python3 ready and django 1.5 is calling for > it. I changed my database settings in settings.py to > 'django.db.backends.mysql' which in return calls for mysqldb when I do: > > python manage.py syncdb > > > I suppose at this point I'm just seeking anyone who has tried to run django > 1.5 and has MySQL actually working. If so, how? > I guess this is the meaning of 'experimental support'. Patches are probably welcome, or you could use sqlite or postgres. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
Correct, Sergiy. As I fiddle with this nightly, the core of my issue seems to be that mysqldb is not yet python3 ready and django 1.5 is calling for it. I changed my database settings in settings.py to ' django.db.backends.mysql' which in return calls for mysqldb when I do: python manage.py syncdb I suppose at this point I'm just seeking anyone who has tried to run django 1.5 and has MySQL actually working. If so, how? On Tuesday, November 20, 2012 2:08:37 AM UTC-5, Sergiy Khohlov wrote: > > Which version of django ? > Is this one version has python 3.x support ? > > 2012/11/20 Cj Taylor >: > > ok, so what needs to happen here? Do I need to recode > > /usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py > to > > use this new module? > > > > > > On Sunday, November 18, 2012 4:57:02 PM UTC-5, iñigo medina wrote: > >> > >> > >> On Sat, 17 Nov 2012, Cj Taylor wrote: > >> > >> > That package installs into my python directory but not python3. I'm > >> > currently trying to get Django 1.5 to work with python3. Are there > >> > other > >> > ways currently to get mysql to work with django and the python3 > >> > environment? > >> > >> Check out pymysql: > >> https://github.com/petehunt/PyMySQL/ > >> > >> i� > >> > >> > > >> > Try this : > >> > > >> >> sudo apt-get install python-mysqldb > >> >> > >> >> -- > >> >> Sandeep Kaur > >> >> E-Mail: mkaur...@gmail.com > >> >> Blog: sandymadaan.wordpress.com > >> >> > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "Django users" group. > >> > To view this discussion on the web visit > >> > https://groups.google.com/d/msg/django-users/-/VfrRmTUUQrgJ. > >> > To post to this group, send email to django...@googlegroups.com. > >> > To unsubscribe from this group, send email to > >> > django-users...@googlegroups.com. > >> > For more options, visit this group at > >> > http://groups.google.com/group/django-users?hl=en. > >> > > >> > > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Django users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/django-users/-/25S322O0_YkJ. > > > > To post to this group, send email to > > django...@googlegroups.com. > > > To unsubscribe from this group, send email to > > django-users...@googlegroups.com . > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/rwaVmDBLz_8J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
Which version of django ? Is this one version has python 3.x support ? 2012/11/20 Cj Taylor : > ok, so what needs to happen here? Do I need to recode > /usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py to > use this new module? > > > On Sunday, November 18, 2012 4:57:02 PM UTC-5, iñigo medina wrote: >> >> >> On Sat, 17 Nov 2012, Cj Taylor wrote: >> >> > That package installs into my python directory but not python3. I'm >> > currently trying to get Django 1.5 to work with python3. Are there >> > other >> > ways currently to get mysql to work with django and the python3 >> > environment? >> >> Check out pymysql: >> https://github.com/petehunt/PyMySQL/ >> >> i� >> >> > >> > Try this : >> > >> >> sudo apt-get install python-mysqldb >> >> >> >> -- >> >> Sandeep Kaur >> >> E-Mail: mkaur...@gmail.com >> >> Blog: sandymadaan.wordpress.com >> >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Django users" group. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msg/django-users/-/VfrRmTUUQrgJ. >> > To post to this group, send email to django...@googlegroups.com. >> > To unsubscribe from this group, send email to >> > django-users...@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/django-users?hl=en. >> > >> > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/25S322O0_YkJ. > > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
ok, so what needs to happen here? Do I need to recode /usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py to use this new module? On Sunday, November 18, 2012 4:57:02 PM UTC-5, iñigo medina wrote: > > > On Sat, 17 Nov 2012, Cj Taylor wrote: > > > That package installs into my python directory but not python3. I'm > > currently trying to get Django 1.5 to work with python3. Are there > other > > ways currently to get mysql to work with django and the python3 > environment? > > Check out pymysql: > https://github.com/petehunt/PyMySQL/ > > i� > > > > > Try this : > > > >> sudo apt-get install python-mysqldb > >> > >> -- > >> Sandeep Kaur > >> E-Mail: mkaur...@gmail.com > >> Blog: sandymadaan.wordpress.com > >> > > > > -- > > You received this message because you are subscribed to the Google > Groups "Django users" group. > > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/VfrRmTUUQrgJ. > > To post to this group, send email to > > django...@googlegroups.com. > > > To unsubscribe from this group, send email to > django-users...@googlegroups.com . > > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/25S322O0_YkJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
On Sat, 17 Nov 2012, Cj Taylor wrote: That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Check out pymysql: https://github.com/petehunt/PyMySQL/ iń Try this : sudo apt-get install python-mysqldb -- Sandeep Kaur E-Mail: mkaur...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/VfrRmTUUQrgJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
On Sat, 17 Nov 2012, Cj Taylor wrote: That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Check out pymysql: https://github.com/petehunt/PyMySQL/ iń Try this : sudo apt-get install python-mysqldb -- Sandeep Kaur E-Mail: mkaur...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/VfrRmTUUQrgJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
On Sat, 17 Nov 2012, Cj Taylor wrote: That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Check out pymysql: https://github.com/petehunt/PyMySQL/ iń Try this : sudo apt-get install python-mysqldb -- Sandeep Kaur E-Mail: mkaur...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/VfrRmTUUQrgJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
On Sun, Nov 18, 2012 at 4:11 AM, Cj Taylor wrote: > That package installs into my python directory but not python3. I'm > currently trying to get Django 1.5 to work with python3. Are there other > ways currently to get mysql to work with django and the python3 environment? See if this helps : https://github.com/vsajip/MySQL-for-Python-3 -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Try this : > sudo apt-get install python-mysqldb > > -- > Sandeep Kaur > E-Mail: mkaur...@gmail.com > Blog: sandymadaan.wordpress.com > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/VfrRmTUUQrgJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
On Fri, Nov 16, 2012 at 10:59 AM, Cj Taylor wrote: > Hello all, > I'm new to Django and somewhat Python (a PHP refugee). I have been > learning Python 3.0 so decided to give 1.5 a run. I tried to run the > command below and mysqldb is missing. I noticed on > http://mysql-python.blogspot.com/ that mysqldb won't be ready for 3.0 until > the 1.3 release. So I guess the question is if there's any kind of > workaround at the moment? > > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: > No module named MySQLdb > Try this : sudo apt-get install python-mysqldb -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
Hello all, I'm new to Django and somewhat Python (a PHP refugee). I have been learning Python 3.0 so decided to give 1.5 a run. I tried to run the command below and mysqldb is missing. I noticed on http://mysql-python.blogspot.com/ that mysqldb won't be ready for 3.0 until the 1.3 release. So I guess the question is if there's any kind of workaround at the moment? Thanks, CJ ~/www$ python3 manage.py syncdb Traceback (most recent call last): File "/usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py", line 14, in import MySQLdb as Database ImportError: No module named MySQLdb During handling of the above exception, another exception occurred: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", line 451, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", line 390, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", line 270, in fetch_command klass = load_command_class(app_name, subcommand) File "/usr/local/lib/python3.2/dist-packages/django/core/management/__init__.py", line 76, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/usr/local/lib/python3.2/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python3.2/dist-packages/django/core/management/commands/syncdb.py", line 8, in from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal File "/usr/local/lib/python3.2/dist-packages/django/core/management/sql.py", line 9, in from django.db import models File "/usr/local/lib/python3.2/dist-packages/django/db/__init__.py", line 40, in backend = load_backend(connection.settings_dict['ENGINE']) File "/usr/local/lib/python3.2/dist-packages/django/db/__init__.py", line 34, in __getattr__ return getattr(connections[DEFAULT_DB_ALIAS], item) File "/usr/local/lib/python3.2/dist-packages/django/db/utils.py", line 85, in __getitem__ backend = load_backend(db['ENGINE']) File "/usr/local/lib/python3.2/dist-packages/django/db/utils.py", line 26, in load_backend return import_module('.base', backend_name) File "/usr/local/lib/python3.2/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py", line 17, in raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/TAWAb2UBHzsJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: No module named MySQLdb
On Dec 3, 5:54 pm, Udbhav <[EMAIL PROTECTED]> wrote: > > Whenever I point my browser at twinsistermusic.com/mysite/ I get the > following error: > > ImproperlyConfigured: Error loading MySQLdb module: No module named > MySQLdb > > Now, I'm pretty sure I installed MySQLdb correctly, as I was able to > use syncdb with no problems and am able to import MySQLdb from within > the Python interpreter. So, what gives? Perhaps apache (or whatever user apache runs under in your system) doesn't have permission to read/execute wherever you installed MySQLdb? I think I had this issue. I also ran into the "egg" issue for MySQLdb, which is documented in the FAQ. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
No module named MySQLdb
I installed Django and started my project on a server running Plesk. I've set up my vhost.conf as follows: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE twinsister.settings PythonOption django.root /mysite PythonDebug On PythonPath "['/var/www/vhosts/twinsistermusic.com/django'] + sys.path" Whenever I point my browser at twinsistermusic.com/mysite/ I get the following error: ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb Now, I'm pretty sure I installed MySQLdb correctly, as I was able to use syncdb with no problems and am able to import MySQLdb from within the Python interpreter. So, what gives? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---