django issue

31 views
Skip to first unread message

Seth Flaxman

unread,
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>
    main(sys.argv[2:])
  File "/homes/flaxman/.local/lib/python2.7/site-packages/sumatra/commands.py", line 212, in init
    if os.path.exists('.smt') and project.record_store.has_project(project.name):
  File "/homes/flaxman/.local/lib/python2.7/site-packages/sumatra/recordstore/django_store/__init__.py", 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/query.py", 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/query.py", 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/query.py", line 464, in get_aggregation
    result = compiler.execute_sql(SINGLE)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 848, in execute_sql
    cursor.execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/utils.py", 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/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/homes/flaxman/.local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 323, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: django_store_project

Thanks.
Seth

Maximilian Albert

unread,
Mar 4, 2016, 7:14:34 AM3/4/16
to sumatr...@googlegroups.com
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.

Cheers,
Max

--
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 sumatra-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages