asked 2011-09-07 06:20:44 -0500Kristofer
Hi, I'm trying to setup Askbot on Windows but I'm getting an error in the migration "0020_auto__add_field_repute_comment__chg_field_repute_question" when running "python manage.py migrate askbot". The error is 1005 "Can't create table 'nameofdb.#sql-8f8_7c' errno: 121".
The database engine used is MySQL 5.5 and the version of Python is 2.7. I'm new to Python and Django so maybe I'm missing something very obvious.
I tried to comment out the following line in the migration 0020
db.alter_column(u'repute', 'question_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['askbot.Question'], null=True, blank=True))
and then it passes. But when then running the migration for django_authopenid using "python manage.py migrate django_authopenid #embedded login application" I get another error (TypeError: handle() got multiple values for keyword argument 'merge' on line 220 in C:\Python27\Lib\site-packages\django-1.3-py2.7.egg\django\core\management\base.py).
Maybe your mysql storage engine is InnoDB? Askbot is not well tested with it. Try MyISAM.
To find out - log in to mysql shell and type, for example
show create table auth_user;
Type of the storage engine will be shown at the end of the output.
If this does not help, the only way to debug this is to reproduce your installation on other system, I have never seen this error before.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2011-09-07 06:20:44 -0500
Seen: 135 times
Last updated: Sep 07 '11