Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
On Tue, Nov 20, 2012 at 2:14 PM, Cj Taylorwrote: > 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 Taylorwrote: > 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 <c...@cjcode.com> 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: Error loading MySQLdb module with virtualenv (Virtual Python Environment builder)
> Have you created the virtual environment by using the --no-site-packages > command line switch to virtualenv? yes , me using -no-site-packages command > If so, no globally installed module/packages > (among them MySQLdb) will be inherited by the environment. > If you are starting, I'd suggest to not mix two somewhat complex > tools like virtualenv and wsgi, specially if you are experiencing problems > with one of them. ok, sir me try best. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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: Error loading MySQLdb module with virtualenv (Virtual Python Environment builder)
On Sat, Sep 18, 2010 at 2:08 AM, Jagdeep Singh Malhi <singh.malh...@gmail.com> wrote: > I am using virtualenv 1.5 to install multiple version of django in > same PC. > My Django is works fine with virtualenv, follow this link > http://pypi.python.org/pypi/virtualenv#downloads > but me face problem with MySQLdb when i configure the database in > setting.py file. > > Error is : > ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: No module named MySQLdb > > > but MySQLdb is already installed in my PC and work fine without using > virtualenv. Have you created the virtual environment by using the --no-site-packages command line switch to virtualenv? If so, no globally installed module/packages (among them MySQLdb) will be inherited by the environment. > > My django mod_wsgi file is :- If you are starting, I'd suggest to not mix two somewhat complex tools like virtualenv and wsgi, specially if you are experiencing problems with one of them. Either fix your MySQLdb+virtualenv problem without using WSGI, use the manage.py runserver development HTTP server) first and then move to WSGI. Or Don't skip the reading the great mod_wsgi docs step, particularly the topic about how to combine it with virtualenv: http://code.google.com/p/modwsgi/wiki/VirtualEnvironments -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Error loading MySQLdb module with virtualenv (Virtual Python Environment builder)
I am using virtualenv 1.5 to install multiple version of django in same PC. My Django is works fine with virtualenv, follow this link http://pypi.python.org/pypi/virtualenv#downloads but me face problem with MySQLdb when i configure the database in setting.py file. Error is : ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb but MySQLdb is already installed in my PC and work fine without using virtualenv. I face this problem, when i use Virtual Python Environment builder(virtualenv 1.5) for multiple pythons. My django mod_wsgi file is :- { import site site.addsitedir('/home/jagdeep/CMS/ENV/lib/python2.6/site-packages') import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'djangocms.settings' sys.path.append('/home/jagdeep/') import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() } Please help. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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: Error loading MySQLdb module: libmysqlclient_r.so.16 - Help please
LD_LIBRARY_PATH variable is the correct one to use when running from your account (not to go into the discussion as to why some people think LD_LIBRARY_PATH is evil), as evidenced when you run python on the command line. In the case of Django running through a web server, the web server is not picking up the LD_LIBRARY_PATH setting you are using in your own personal account. The reason editing ld.so.conf works, is because you are globally setting the library path to search. Since ld.so.conf is a 'global' setting, your Django application (python) picks it up from the system and finds the library. Another way (what I do) is to compile Python with the MySQL lib directory (--with-libs configuration argument) so that Python can find the library whenever it runs (no matter who's running it, me -- or the web server). On Sat, 2009-06-13 at 10:18 -0700, NoCleverName wrote: > > This is the author again. Of course, 10 minutes after I post a question, I > find the solution. (After hours of searching beforehand) > > If anyone else has this problem, the solution for me was: > > edit /etc/ld.so.conf > add the line: /usr/local/mysql/lib > > then run /etc/ldconfig > > Fixed the problem right up. No idea why or how this worked, but everything > is working now. > > > > NoCleverName wrote: > > > > So I'm having an issue getting Django to work with MySQL. After I log > > into my Django site, I get the following error: > > > > ImproperlyConfigured: Error loading MySQLdb module: > > libmysqlclient_r.so.16: cannot open shared object file: No such file or > > directory > > > > The error is being thrown from > > site-packages/django/db/backends/mysql/base.py line 13. > > > > Unlike a lot of similar posts on the message board (I have searched), I > > have MySQLdb installed. The lines in question are just 'import MySQLdb as > > Database' and the associated try/catch throwing the error. When I run > > python from a command line and type 'import MySQLdb' it imports just fine. > > I added to to the root's .bash_profile and the .bashrc of the 'mysql' > > user. The file definitely exists (in /usr/local/mysql/lib) > > > > I used the variable LD_LIBRARY_PATH in the two profiles to make the > > 'import MySQLdb' statement work, is that the correct environment variable? > > > > As a note, I installed mysql from the .tar.gz files and MySQLpython from > > the .tar.gz files as well. I can't use any sort of package manager to > > install this stuff. > > > -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com Disclaimer: Any/All views expressed here have been proven to be my own. [http://www.csh.rit.edu/~adam/] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Error loading MySQLdb module: libmysqlclient_r.so.16 - Help please
So I'm having an issue getting Django to work with MySQL. After I log into my Django site, I get the following error: ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory The error is being thrown from site-packages/django/db/backends/mysql/base.py line 13. Unlike a lot of similar posts on the message board (I have searched), I have MySQLdb installed. The lines in question are just 'import MySQLdb as Database' and the associated try/catch throwing the error. When I run python from a command line and type 'import MySQLdb' it imports just fine. I added to to the root's .bash_profile and the .bashrc of the 'mysql' user. The file definitely exists (in /usr/local/mysql/lib) I used the variable LD_LIBRARY_PATH in the two profiles to make the 'import MySQLdb' statement work, is that the correct environment variable? As a note, I installed mysql from the .tar.gz files and MySQLpython from the .tar.gz files as well. I can't use any sort of package manager to install this stuff. -- View this message in context: http://www.nabble.com/Error-loading-MySQLdb-module%3A-libmysqlclient_r.so.16---Help-please-tp24014308p24014308.html Sent from the django-users mailing list archive at Nabble.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: Error loading MySQLdb module: libmysqlclient_r.so.16 - Help please
This is the author again. Of course, 10 minutes after I post a question, I find the solution. (After hours of searching beforehand) If anyone else has this problem, the solution for me was: edit /etc/ld.so.conf add the line: /usr/local/mysql/lib then run /etc/ldconfig Fixed the problem right up. No idea why or how this worked, but everything is working now. NoCleverName wrote: > > So I'm having an issue getting Django to work with MySQL. After I log > into my Django site, I get the following error: > > ImproperlyConfigured: Error loading MySQLdb module: > libmysqlclient_r.so.16: cannot open shared object file: No such file or > directory > > The error is being thrown from > site-packages/django/db/backends/mysql/base.py line 13. > > Unlike a lot of similar posts on the message board (I have searched), I > have MySQLdb installed. The lines in question are just 'import MySQLdb as > Database' and the associated try/catch throwing the error. When I run > python from a command line and type 'import MySQLdb' it imports just fine. > I added to to the root's .bash_profile and the .bashrc of the 'mysql' > user. The file definitely exists (in /usr/local/mysql/lib) > > I used the variable LD_LIBRARY_PATH in the two profiles to make the > 'import MySQLdb' statement work, is that the correct environment variable? > > As a note, I installed mysql from the .tar.gz files and MySQLpython from > the .tar.gz files as well. I can't use any sort of package manager to > install this stuff. > -- View this message in context: http://www.nabble.com/Error-loading-MySQLdb-module%3A-libmysqlclient_r.so.16---Help-please-tp24014308p24014469.html Sent from the django-users mailing list archive at Nabble.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: Error loading MySQLdb module
where might I find the PYTHONPATH variable? On Aug 11, 6:39 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 8/11/07, Kelsey Ruger <[EMAIL PROTECTED]> wrote: > > > I have the same problem even though I have installedMySQLdb. > > Open up a Python interpreter, and try: > > importMySQLdb > > If you see an ImportError,MySQLdbmay have been installed into a > location that's not on your Python import path; you can fix this by > changing the environment variable PYTHONPATH to include the directory > into whichMySQLdbwas installed (not the location ofMySQLdbitself, > but the directory in which it can be found), like so: > > export PYTHONPATH=/dir/where/mysqldb/lives:$PYTHONPATH > > Placing that in the file '.bashrc' in your home directory will cause > it to be set automatically for you any time you open up a shell. > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Error loading MySQLdb module
I have the same problem even though I have installed MySQLdb. On Jul 6, 3:42 pm, "Bryan L. Fordham" <[EMAIL PROTECTED]> wrote: > looks like you need to install > MySQLdb:http://sourceforge.net/projects/mysql-python > > Jalil wrote: > > I keep getting this below error when I try to sync my database. > > I am using python2.3. Any ideas? > > > [no job set:~/dev/mysite] 113% python2.3 manage.py syncdb > > Traceback (most recent call last): > > File "manage.py", line 11, in ? > > execute_manager(settings) > > File "/usr/lib/python2.3/site-packages/django/core/management.py", > > line 1672, in execute_manager > > execute_from_command_line(action_mapping, argv) > > File "/usr/lib/python2.3/site-packages/django/core/management.py", > > line 1571, in execute_from_command_line > > action_mapping[action](int(options.verbosity), options.interactive) > > File "/usr/lib/python2.3/site-packages/django/core/management.py", > > line 486, in syncdb > > from django.db import connection, transaction, models, > > get_creation_module > > File "/usr/lib/python2.3/site-packages/django/db/__init__.py", line > > 11, in ? > > backend = __import__('django.db.backends.%s.base' % > > settings.DATABASE_ENGINE, {}, {}, ['']) > > File > > "/usr/lib/python2.3/site-packages/django/db/backends/mysql_old/base.py", > > line 12, in ? > > raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e > > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > > module: No module named MySQLdb > > bykergrove [no job set:~/dev/mysite] 114% --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Error loading MySQLdb module
looks like you need to install MySQLdb: http://sourceforge.net/projects/mysql-python Jalil wrote: > I keep getting this below error when I try to sync my database. > I am using python2.3. Any ideas? > > > > [no job set:~/dev/mysite] 113% python2.3 manage.py syncdb > Traceback (most recent call last): > File "manage.py", line 11, in ? > execute_manager(settings) > File "/usr/lib/python2.3/site-packages/django/core/management.py", > line 1672, in execute_manager > execute_from_command_line(action_mapping, argv) > File "/usr/lib/python2.3/site-packages/django/core/management.py", > line 1571, in execute_from_command_line > action_mapping[action](int(options.verbosity), options.interactive) > File "/usr/lib/python2.3/site-packages/django/core/management.py", > line 486, in syncdb > from django.db import connection, transaction, models, > get_creation_module > File "/usr/lib/python2.3/site-packages/django/db/__init__.py", line > 11, in ? > backend = __import__('django.db.backends.%s.base' % > settings.DATABASE_ENGINE, {}, {}, ['']) > File > "/usr/lib/python2.3/site-packages/django/db/backends/mysql_old/base.py", > line 12, in ? > raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: No module named MySQLdb > bykergrove [no job set:~/dev/mysite] 114% --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Error loading MySQLdb module
I keep getting this below error when I try to sync my database. I am using python2.3. Any ideas? [no job set:~/dev/mysite] 113% python2.3 manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1672, in execute_manager execute_from_command_line(action_mapping, argv) File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1571, in execute_from_command_line action_mapping[action](int(options.verbosity), options.interactive) File "/usr/lib/python2.3/site-packages/django/core/management.py", line 486, in syncdb from django.db import connection, transaction, models, get_creation_module File "/usr/lib/python2.3/site-packages/django/db/__init__.py", line 11, in ? backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, {}, {}, ['']) File "/usr/lib/python2.3/site-packages/django/db/backends/mysql_old/base.py", line 12, in ? raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb bykergrove [no job set:~/dev/mysite] 114% --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---