On Fri, 2009-05-01 at 14:59 -0700, nbv4 wrote: > Whenever I run the syncdb command, I get this error: > > ch...@chris-desktop:~/Websites/jobmap$ python manage.py syncdb > /var/lib/python-support/python2.6/MySQLdb/__init__.py:34: > DeprecationWarning: the sets module is deprecated > from sets import ImmutableSet > > I'm using Python 2.6 on Ununtu 9.04. I see this page: > http://code.djangoproject.com/ticket/8078 says the bug is fixed, but > for me it most definitely is not fixed. What the heck can I do to fix > this?
Firstly, it's not a bug. A warning is being issued. It's not an error, it's a warning. By definition, the code will continue to work perfectly. Secondly, this isn't a Django warning. It's being issued by MySQLdb, the external database wrapper for MySQL that we use. The ticket you refer to (#8078) was a case of Django itself issuing that warning and one of our goals for the 1.0 release was to not issue warnings on everything from Python 2.3 through to the just-released 2.6. So we fixed things in our own code (because, as you have just demonstrated, people do get a bit jumpy when they see a warning). MySQLdb is going through a few rewrites at the moment, but I believe it's in a beta release at the moment. One problem there is that the latest beta of MySQLdb doesn't run with Django itself, due to a lot of internal changes in MySQLdb. Fixing that is something that I'm going to be looking at very soon -- it's right near the top of my list of things to attend to for Django 1.1. So, for now and in conclusion, don't be worried by the warning. If you really don't want to see it, have a look at the "-W" option that you can pass to the "python" binary so that it is hidden. In the due course of time, MySQLdb will be updated, Django will work with the latest version, certainly as it hits final release and all that will happen before Python removes the "sets" module. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---