ecometrica/django-dbarray — Issue #2: django.db.utils.DatabaseError: missing dimension value 
Author: eykd
Created: 2012-01-20 06:27:18+00:00
State: open

I just recently started getting this error when running South migrations on a model using dbarray. Any idea what's behind this?

Not sure if it will be helpful, but here's a traceback:

Traceback (most recent call last):
File "./manage.py", line 14, in
execute_manager(settings)
File "[...]/django/django/core/management/__init__.py", line 435, in execute_manager
utility.execute()
File "[...]/django/django/core/management/__init__.py", line 358, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "[...]/django/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "[...]/django/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "[...]/django/django/core/management/base.py", line 371, in handle
return self.handle_noargs(**options)
File "[...]/south/management/commands/syncdb.py", line 99, in handle_noargs
management.call_command('migrate', **options)
File "[...]/django/django/core/management/__init__.py", line 145, in call_command
return klass.execute(*args, **defaults)
File "[...]/django/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "[...]/south/management/commands/migrate.py", line 105, in handle
ignore_ghosts = ignore_ghosts,
File "[...]/south/migration/__init__.py", line 191, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "[...]/south/migration/migrators.py", line 221, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "[...]/south/migration/migrators.py", line 292, in migrate_many
result = self.migrate(migration, database)
File "[...]/south/migration/migrators.py", line 125, in migrate
result = self.run(migration)
File "[...]/south/migration/migrators.py", line 99, in run
return self.run_migration(migration)
File "[...]/south/migration/migrators.py", line 81, in run_migration
migration_function()
File "[...]/south/migration/migrators.py", line 57, in
return (lambda: direction(orm))
File "[...]/migrations/0001_initial.py", line 19, in forwards
('stack', self.gf('dbarray.TextArrayField')(default=[])),
File "[...]/south/db/generic.py", line 226, in create_table
', '.join([col for col in columns if col]),
File "[...]/south/db/generic.py", line 150, in execute
cursor.execute(sql, params)
File "[...]/django/django/db/backends/util.py", line 40, in execute
return self.cursor.execute(sql, params)
File "[...]/django/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
return self.cursor.execute(query, args)
django.db.utils.DatabaseError: missing dimension value