On Fri, 2007-05-25 at 20:51 -0700, Grant D. Watson wrote: > I'm a newbie to Django. It looks amazing, and I've > decided to give it a whirl, but when I try a syncdb on > my new project I get a core dump; the only things I've > changed in settings.py are ADMINS and DATABASE_*. > Given the context I assume it's something to do with > the psycopg2 library and Django? > > I'm running Ubuntu Feisty (amd64) with repository > versions of Python (2.5.1c1),
No idea about the core dump -- it's not very usual (for Python). However, you will have to do something about your Python version. Either downgrade to 2.5.0 or upgrade to 2.5.1 proper. The problem is that there was a regression in the 2.5.1-pre-releases with the way dictionary subclasses are initialised and this causes a problem with Django; the regression was fixed in 2.5.1-final. This was pointed out very early to the Ubuntu guys (I think before Feisty final was released) and I thought there was an upgraded package in the pipeline, but it may not have been released yet (not an Ubuntu user myself, so not entirely familiar with how to check this out easily). > PostgreSQL (8.2.4) and > python-psycopg2 (2.0.1.5-6). I'm using Django 0.96 > installed with setup.py. > > I suspected the sameuser identification for Postgres > was causing problems, but I changed it to md5 with no > luck. Is there sufficient debug information in the coredump that can run "gdb python core.dump" and see from the backtrace what is actually causing the problem? It certainly sounds like it would be something like psyscopg2, since Python itself almost never core dumps, so it's more likely to be something running in C -- like a loaded module (of course, this is just playing the odds, not a definitive answer). I use pretty much the same setup as you, although with Python 2.4, on a 64-bit system without problems. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---