django issue

Skip to first unread message

Seth Flaxman

Mar 3, 2016, 11:05:43 AM3/3/16
to sumatra-users
Hi. I'm trying to follow the getting started guide. I installed everything locally with pip install --user. I'm using git (and don't mind if I can't use the web interface for the moment.) I've got python 2.7.10 and I'm on Red Hat 5.3.1-2.

Following the instructions, here's what happens:

cd myproject
smt init MyProject
Traceback (most recent call last):
  File "/homes/flaxman/.local/bin/smt", line 31, in <module>
  File "/homes/flaxman/.local/lib/python2.7/site-packages/sumatra/", line 212, in init
    if os.path.exists('.smt') and project.record_store.has_project(
  File "/homes/flaxman/.local/lib/python2.7/site-packages/sumatra/recordstore/django_store/", line 217, in has_project
    return bool(models.Project.objects.using(self._db_label).filter(id=project_name).count())
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/models/", line 371, in count
    return self.query.get_count(using=self.db)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/models/sql/", line 483, in get_count
    number = obj.get_aggregation(using, ['__count'])['__count']
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/models/sql/", line 464, in get_aggregation
    result = compiler.execute_sql(SINGLE)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/models/sql/", line 848, in execute_sql
    cursor.execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/backends/", line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/backends/", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/", line 95, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/backends/", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/backends/sqlite3/", line 323, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: django_store_project


Maximilian Albert

Mar 4, 2016, 7:14:34 AM3/4/16
Hi Seth,

Which version of Django are you using? I seem to remember that this error may be caused by a "wrong" django version. Currently Sumatra requires a django version strictly less than 1.9 (see ci/requirements.txt), but if you simply did "pip install django" then it will install the latest version, which is 1.9.3. If you are indeed running the latest version of django it may help to downgrade, e.g. by running

   pip install "django<1.9"

Hope this helps. If not, feel free to report back here.


You received this message because you are subscribed to the Google Groups "sumatra-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit

Reply all
Reply to author
0 new messages