Re: FW: MySQLdb version doesn't match _mysql version
Hi, Just to let everyone know - I uninstalled the mysql-python package for the server (not just in my virtualenv) and re-installed it, and that fixed the issue. Thanks for your help! On Aug 22, 4:56 pm, Cal Leeming wrote: > Do this: > > import sys > print sys.path > > Then paste result > > Thanks > > Cal > > On Mon, Aug 22, 2011 at 2:44 PM, hg wrote: > > Hi All, > > Thanks for taking the time to respond to my question. > > Cal: I did try uninstalling and re-installing. > > Kejun: Yes, it's installed. > > > On Aug 22, 11:18 am, Kejun He wrote: > > > Did you install python-mysqldb in your mechine?? > > > > On Mon, Aug 22, 2011 at 3:45 PM, Cal Leeming [Simplicity Media Ltd] < > > > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > > > Hold on, i would say this is a django-related question (albeit not > > related > > > > to a problem within django). OP - try removing and reinstalling mysqldb > > on > > > > your python install and/or env. > > > > On Aug 21, 2011 2:20 PM, "Ramiro Morales" wrote: > > > > > On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz < > > hgo...@gmail.com> > > > > wrote: > > > > > >> Hi everyone, > > > > > >> Thank you for taking the time to look at my question. > > > > > >> I’m setting up a django project that I got from a code repository, > > and > > > > in > > > > >> trying to run ./manage.py syncdb I get the following error: > > > > > >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > > > > module: > > > > >> this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version > > (1, > > > > 2, > > > > >> 2, 'final', 0). > > > > > > Seems you mysqldb (the Python DB-API 2.0 compatible library to access > > > > > MySQL databases) installation is borked. > > > > > > mysqldb is composed of two layers: > > > > > > _mysql is a low level one, a more or less thin wrapper over the C > > mysql > > > > client > > > > > libraries. > > > > > > On top of that there is mysldb itself, that uses the services of > > _mysql > > > > > and implemets the DB-API specification. > > > > > > You seem to have a a corrupt copy because both pieces are released > > > > together, > > > > > and when a correct installation has been performed, they are built > > and > > > > installed > > > > > together with matching version IDs. > > > > > > You might find better answers in a mailing list or IRC channel > > > > > devoted to mysqldb. This isn't a Django -related or -specific issue. > > > > > > Regards, > > > > > > -- > > > > > Ramiro Morales > > > > > > -- > > > > > 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. > > > > > -- > > > > 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. > > > -- > > 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. -- 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: FW: MySQLdb version doesn't match _mysql version
On Mon, Aug 22, 2011 at 9:44 PM, hg wrote: > Hi All, > Thanks for taking the time to respond to my question. > Cal: I did try uninstalling and re-installing. > Kejun: Yes, it's installed. > > May be you can try to remove the mysql and python-mysqldb, and then reinstall them. and ensure the new python-mysqldb and the mysql match. Good Luck. > > On Aug 22, 11:18 am, Kejun He wrote: > > Did you install python-mysqldb in your mechine?? > > > > On Mon, Aug 22, 2011 at 3:45 PM, Cal Leeming [Simplicity Media Ltd] < > > > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > > Hold on, i would say this is a django-related question (albeit not > related > > > to a problem within django). OP - try removing and reinstalling mysqldb > on > > > your python install and/or env. > > > On Aug 21, 2011 2:20 PM, "Ramiro Morales" wrote: > > > > On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz < > hgo...@gmail.com> > > > wrote: > > > > > >> Hi everyone, > > > > > >> Thank you for taking the time to look at my question. > > > > > >> I’m setting up a django project that I got from a code repository, > and > > > in > > > >> trying to run ./manage.py syncdb I get the following error: > > > > > >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > > > module: > > > >> this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version > (1, > > > 2, > > > >> 2, 'final', 0). > > > > > > Seems you mysqldb (the Python DB-API 2.0 compatible library to access > > > > MySQL databases) installation is borked. > > > > > > mysqldb is composed of two layers: > > > > > > _mysql is a low level one, a more or less thin wrapper over the C > mysql > > > client > > > > libraries. > > > > > > On top of that there is mysldb itself, that uses the services of > _mysql > > > > and implemets the DB-API specification. > > > > > > You seem to have a a corrupt copy because both pieces are released > > > together, > > > > and when a correct installation has been performed, they are built > and > > > installed > > > > together with matching version IDs. > > > > > > You might find better answers in a mailing list or IRC channel > > > > devoted to mysqldb. This isn't a Django -related or -specific issue. > > > > > > Regards, > > > > > > -- > > > > Ramiro Morales > > > > > > -- > > > > 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. > > > > > -- > > > 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. > > -- > 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. > > -- 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: FW: MySQLdb version doesn't match _mysql version
Do this: import sys print sys.path Then paste result Thanks Cal On Mon, Aug 22, 2011 at 2:44 PM, hg wrote: > Hi All, > Thanks for taking the time to respond to my question. > Cal: I did try uninstalling and re-installing. > Kejun: Yes, it's installed. > > > On Aug 22, 11:18 am, Kejun He wrote: > > Did you install python-mysqldb in your mechine?? > > > > On Mon, Aug 22, 2011 at 3:45 PM, Cal Leeming [Simplicity Media Ltd] < > > > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > > Hold on, i would say this is a django-related question (albeit not > related > > > to a problem within django). OP - try removing and reinstalling mysqldb > on > > > your python install and/or env. > > > On Aug 21, 2011 2:20 PM, "Ramiro Morales" wrote: > > > > On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz < > hgo...@gmail.com> > > > wrote: > > > > > >> Hi everyone, > > > > > >> Thank you for taking the time to look at my question. > > > > > >> I’m setting up a django project that I got from a code repository, > and > > > in > > > >> trying to run ./manage.py syncdb I get the following error: > > > > > >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > > > module: > > > >> this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version > (1, > > > 2, > > > >> 2, 'final', 0). > > > > > > Seems you mysqldb (the Python DB-API 2.0 compatible library to access > > > > MySQL databases) installation is borked. > > > > > > mysqldb is composed of two layers: > > > > > > _mysql is a low level one, a more or less thin wrapper over the C > mysql > > > client > > > > libraries. > > > > > > On top of that there is mysldb itself, that uses the services of > _mysql > > > > and implemets the DB-API specification. > > > > > > You seem to have a a corrupt copy because both pieces are released > > > together, > > > > and when a correct installation has been performed, they are built > and > > > installed > > > > together with matching version IDs. > > > > > > You might find better answers in a mailing list or IRC channel > > > > devoted to mysqldb. This isn't a Django -related or -specific issue. > > > > > > Regards, > > > > > > -- > > > > Ramiro Morales > > > > > > -- > > > > 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. > > > > > -- > > > 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. > > -- > 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. > > -- 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: FW: MySQLdb version doesn't match _mysql version
Do this: import sys print sys.path Then paste result Thanks On Mon, Aug 22, 2011 at 2:44 PM, hg wrote: > Hi All, > Thanks for taking the time to respond to my question. > Cal: I did try uninstalling and re-installing. > Kejun: Yes, it's installed. > > > On Aug 22, 11:18 am, Kejun He wrote: > > Did you install python-mysqldb in your mechine?? > > > > On Mon, Aug 22, 2011 at 3:45 PM, Cal Leeming [Simplicity Media Ltd] < > > > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > > Hold on, i would say this is a django-related question (albeit not > related > > > to a problem within django). OP - try removing and reinstalling mysqldb > on > > > your python install and/or env. > > > On Aug 21, 2011 2:20 PM, "Ramiro Morales" wrote: > > > > On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz < > hgo...@gmail.com> > > > wrote: > > > > > >> Hi everyone, > > > > > >> Thank you for taking the time to look at my question. > > > > > >> I’m setting up a django project that I got from a code repository, > and > > > in > > > >> trying to run ./manage.py syncdb I get the following error: > > > > > >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > > > module: > > > >> this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version > (1, > > > 2, > > > >> 2, 'final', 0). > > > > > > Seems you mysqldb (the Python DB-API 2.0 compatible library to access > > > > MySQL databases) installation is borked. > > > > > > mysqldb is composed of two layers: > > > > > > _mysql is a low level one, a more or less thin wrapper over the C > mysql > > > client > > > > libraries. > > > > > > On top of that there is mysldb itself, that uses the services of > _mysql > > > > and implemets the DB-API specification. > > > > > > You seem to have a a corrupt copy because both pieces are released > > > together, > > > > and when a correct installation has been performed, they are built > and > > > installed > > > > together with matching version IDs. > > > > > > You might find better answers in a mailing list or IRC channel > > > > devoted to mysqldb. This isn't a Django -related or -specific issue. > > > > > > Regards, > > > > > > -- > > > > Ramiro Morales > > > > > > -- > > > > 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. > > > > > -- > > > 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. > > -- > 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. > > -- 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: FW: MySQLdb version doesn't match _mysql version
Hi All, Thanks for taking the time to respond to my question. Cal: I did try uninstalling and re-installing. Kejun: Yes, it's installed. On Aug 22, 11:18 am, Kejun He wrote: > Did you install python-mysqldb in your mechine?? > > On Mon, Aug 22, 2011 at 3:45 PM, Cal Leeming [Simplicity Media Ltd] < > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > Hold on, i would say this is a django-related question (albeit not related > > to a problem within django). OP - try removing and reinstalling mysqldb on > > your python install and/or env. > > On Aug 21, 2011 2:20 PM, "Ramiro Morales" wrote: > > > On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz > > wrote: > > > >> Hi everyone, > > > >> Thank you for taking the time to look at my question. > > > >> I’m setting up a django project that I got from a code repository, and > > in > > >> trying to run ./manage.py syncdb I get the following error: > > > >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > > module: > > >> this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version (1, > > 2, > > >> 2, 'final', 0). > > > > Seems you mysqldb (the Python DB-API 2.0 compatible library to access > > > MySQL databases) installation is borked. > > > > mysqldb is composed of two layers: > > > > _mysql is a low level one, a more or less thin wrapper over the C mysql > > client > > > libraries. > > > > On top of that there is mysldb itself, that uses the services of _mysql > > > and implemets the DB-API specification. > > > > You seem to have a a corrupt copy because both pieces are released > > together, > > > and when a correct installation has been performed, they are built and > > installed > > > together with matching version IDs. > > > > You might find better answers in a mailing list or IRC channel > > > devoted to mysqldb. This isn't a Django -related or -specific issue. > > > > Regards, > > > > -- > > > Ramiro Morales > > > > -- > > > 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. > > > -- > > 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. -- 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: FW: MySQLdb version doesn't match _mysql version
Did you install python-mysqldb in your mechine?? On Mon, Aug 22, 2011 at 3:45 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hold on, i would say this is a django-related question (albeit not related > to a problem within django). OP - try removing and reinstalling mysqldb on > your python install and/or env. > On Aug 21, 2011 2:20 PM, "Ramiro Morales" wrote: > > On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz > wrote: > >> > >> > >> Hi everyone, > >> > >> Thank you for taking the time to look at my question. > >> > >> > >> > >> I’m setting up a django project that I got from a code repository, and > in > >> trying to run ./manage.py syncdb I get the following error: > >> > >> > >> > >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: > >> this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version (1, > 2, > >> 2, 'final', 0). > > > > Seems you mysqldb (the Python DB-API 2.0 compatible library to access > > MySQL databases) installation is borked. > > > > mysqldb is composed of two layers: > > > > _mysql is a low level one, a more or less thin wrapper over the C mysql > client > > libraries. > > > > On top of that there is mysldb itself, that uses the services of _mysql > > and implemets the DB-API specification. > > > > You seem to have a a corrupt copy because both pieces are released > together, > > and when a correct installation has been performed, they are built and > installed > > together with matching version IDs. > > > > You might find better answers in a mailing list or IRC channel > > devoted to mysqldb. This isn't a Django -related or -specific issue. > > > > Regards, > > > > -- > > Ramiro Morales > > > > -- > > 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. > > > > -- > 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. > -- 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: FW: MySQLdb version doesn't match _mysql version
Hold on, i would say this is a django-related question (albeit not related to a problem within django). OP - try removing and reinstalling mysqldb on your python install and/or env. On Aug 21, 2011 2:20 PM, "Ramiro Morales" wrote: > On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz wrote: >> >> >> Hi everyone, >> >> Thank you for taking the time to look at my question. >> >> >> >> I’m setting up a django project that I got from a code repository, and in >> trying to run ./manage.py syncdb I get the following error: >> >> >> >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: >> this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version (1, 2, >> 2, 'final', 0). > > Seems you mysqldb (the Python DB-API 2.0 compatible library to access > MySQL databases) installation is borked. > > mysqldb is composed of two layers: > > _mysql is a low level one, a more or less thin wrapper over the C mysql client > libraries. > > On top of that there is mysldb itself, that uses the services of _mysql > and implemets the DB-API specification. > > You seem to have a a corrupt copy because both pieces are released together, > and when a correct installation has been performed, they are built and installed > together with matching version IDs. > > You might find better answers in a mailing list or IRC channel > devoted to mysqldb. This isn't a Django -related or -specific issue. > > Regards, > > -- > Ramiro Morales > > -- > 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. > -- 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: FW: MySQLdb version doesn't match _mysql version
On Sun, Aug 21, 2011 at 5:08 AM, Hadassa Golovenshitz wrote: > > > Hi everyone, > > Thank you for taking the time to look at my question. > > > > I’m setting up a django project that I got from a code repository, and in > trying to run ./manage.py syncdb I get the following error: > > > > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: > this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version (1, 2, > 2, 'final', 0). Seems you mysqldb (the Python DB-API 2.0 compatible library to access MySQL databases) installation is borked. mysqldb is composed of two layers: _mysql is a low level one, a more or less thin wrapper over the C mysql client libraries. On top of that there is mysldb itself, that uses the services of _mysql and implemets the DB-API specification. You seem to have a a corrupt copy because both pieces are released together, and when a correct installation has been performed, they are built and installed together with matching version IDs. You might find better answers in a mailing list or IRC channel devoted to mysqldb. This isn't a Django -related or -specific issue. Regards, -- Ramiro Morales -- 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.
FW: MySQLdb version doesn't match _mysql version
Hi everyone, Thank you for taking the time to look at my question. I'm setting up a django project that I got from a code repository, and in trying to run ./manage.py syncdb I get the following error: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version (1, 2, 2, 'final', 0). I get the same error when running import MySQLdb at the python command line interpreter. Does anyone have any ideas? I've spent hours searching for similar posts, but no solutions seem to help me. I'd appreciate any suggestions! __ Information from ESET NOD32 Antivirus, version of virus signature database 6397 (20110821) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.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.