wagtail-nest / wagtail-personalisation

Rule-based personalisation for Wagtail CMS
http://wagxperience.io/
MIT License
120 stars 34 forks source link

Sandbox creation problem #201

Open mattlinares opened 5 years ago

mattlinares commented 5 years ago

Any ideas about what's going on here?

(wagtail-personalisation) ~/c/p/wagtail-personalisation (master |  πŸ” 8962) > make sandbox
pip install -r sandbox/requirements.txt
Obtaining file:///Users/technical/code/pb/wagtail-personalisation (from -r sandbox/requirements.txt (line 4))
Collecting Django<2.2,>=2.1 (from -r sandbox/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/8c/49/d5038239995594281478bf209f8d93524ad342d500009a697b27f884668a/Django-2.1.11-py3-none-any.whl
Collecting wagtail==2.4 (from -r sandbox/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/5a/ed/ca800bf6fdd4ad387578d2b41be1b2059ddc302cc0ac159d6904e35afe26/wagtail-2.4-py3-none-any.whl
Requirement already satisfied: django-debug-toolbar==1.9.1 in /usr/local/lib/python3.6/site-packages (from -r sandbox/requirements.txt (line 3)) (1.9.1)
Requirement already satisfied: user-agents>=1.1.0 in /usr/local/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.0)
Requirement already satisfied: wagtailfontawesome>=1.1.3 in /usr/local/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.3)
Requirement already satisfied: pycountry in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (19.7.15)
Collecting sphinx>=1.7.6 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/6e/e5/c9ba68935cd2d72c553d49bc156bfb15ddb40e734ea7e3f238d8bd6ca6f1/Sphinx-2.1.2-py3-none-any.whl
Requirement already satisfied: sphinx_rtd_theme>=0.4.0 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.4.3)
Requirement already satisfied: factory_boy==2.8.1 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.8.1)
Requirement already satisfied: flake8-blind-except in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.1.1)
Requirement already satisfied: flake8-debugger in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (3.1.0)
Requirement already satisfied: flake8-imports in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.1.1)
Requirement already satisfied: flake8 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (3.7.8)
Requirement already satisfied: freezegun==0.3.8 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.3.8)
Requirement already satisfied: pytest-cov==2.5.1 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.5.1)
Requirement already satisfied: pytest-django==3.1.2 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (3.1.2)
Requirement already satisfied: pytest-pythonpath==0.7.2 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.7.2)
Requirement already satisfied: pytest-sugar==0.9.1 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.9.1)
Collecting pytest==3.4.2 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/f1/5c/411ceafef3b5e5486d16f174db18dc26f49e7704dbf59ef488e95db47339/pytest-3.4.2-py2.py3-none-any.whl
Requirement already satisfied: wagtail_factories==1.1.0 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.0)
Requirement already satisfied: pytest-mock==1.6.3 in ./.venv/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.6.3)
Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from Django<2.2,>=2.1->-r sandbox/requirements.txt (line 1)) (2017.2)
Requirement already satisfied: django-taggit<0.24,>=0.23 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.23.0)
Requirement already satisfied: beautifulsoup4<4.6.1,>=4.5.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.6.0)
Requirement already satisfied: html5lib<2,>=0.999 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.999999999)
Requirement already satisfied: djangorestframework<4.0,>=3.7.4 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (3.8.2)
Requirement already satisfied: Willow<1.2,>=1.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.1)
Requirement already satisfied: Unidecode<2.0,>=0.04.14 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.4.21)
Collecting draftjs-exporter<3.0,>=2.1.5 (from wagtail==2.4->-r sandbox/requirements.txt (line 2))
Requirement already satisfied: requests<3.0,>=2.11.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2.18.4)
Requirement already satisfied: django-treebeard<5.0,>=4.2.0 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3)
Requirement already satisfied: Pillow<6.0,>=4.0.0 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3.0)
Requirement already satisfied: six<2.0,>=1.11 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.11.0)
Requirement already satisfied: django-modelcluster<5.0,>=4.2 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3)
Requirement already satisfied: sqlparse>=0.2.0 in /usr/local/lib/python3.6/site-packages (from django-debug-toolbar==1.9.1->-r sandbox/requirements.txt (line 3)) (0.2.4)
Requirement already satisfied: ua-parser>=0.4.1 in /usr/local/lib/python3.6/site-packages (from user-agents>=1.1.0->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.8.0)
Requirement already satisfied: sphinxcontrib-htmlhelp in ./.venv/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.2)
Requirement already satisfied: sphinxcontrib-applehelp in ./.venv/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.1)
Requirement already satisfied: sphinxcontrib-jsmath in ./.venv/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.1)
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.2.0)
Requirement already satisfied: sphinxcontrib-devhelp in ./.venv/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.1)
Requirement already satisfied: docutils>=0.12 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.14)
Requirement already satisfied: Jinja2>=2.3 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.10)
Requirement already satisfied: alabaster<0.8,>=0.7 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.7.11)
Requirement already satisfied: snowballstemmer>=1.1 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.2.1)
Requirement already satisfied: packaging in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (17.1)
Requirement already satisfied: sphinxcontrib-serializinghtml in ./.venv/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.3)
Requirement already satisfied: sphinxcontrib-qthelp in ./.venv/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.2)
Requirement already satisfied: imagesize in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (39.2.0)
Requirement already satisfied: babel!=2.0,>=1.3 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.6.0)
Requirement already satisfied: Faker>=0.7.0 in ./.venv/lib/python3.6/site-packages (from factory_boy==2.8.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.0.0)
Requirement already satisfied: pycodestyle in ./.venv/lib/python3.6/site-packages (from flake8-debugger->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.5.0)
Requirement already satisfied: isort in ./.venv/lib/python3.6/site-packages (from flake8-imports->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (4.3.21)
Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in ./.venv/lib/python3.6/site-packages (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.6.1)
Collecting entrypoints<0.4.0,>=0.3.0 (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Requirement already satisfied: pyflakes<2.2.0,>=2.1.0 in ./.venv/lib/python3.6/site-packages (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.1.1)
Requirement already satisfied: python-dateutil!=2.0,>=1.0 in /usr/local/lib/python3.6/site-packages (from freezegun==0.3.8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.7.3)
Requirement already satisfied: coverage>=3.7.1 in /usr/local/lib/python3.6/site-packages (from pytest-cov==2.5.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (4.5.3)
Requirement already satisfied: termcolor>=1.1.0 in ./.venv/lib/python3.6/site-packages (from pytest-sugar==0.9.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.0)
Collecting pluggy<0.7,>=0.5 (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ba/65/ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7/pluggy-0.6.0-py3-none-any.whl
Requirement already satisfied: attrs>=17.2.0 in ./.venv/lib/python3.6/site-packages (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (19.1.0)
Requirement already satisfied: py>=1.5.0 in /usr/local/lib/python3.6/site-packages (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.8.0)
Requirement already satisfied: webencodings in /usr/local/lib/python3.6/site-packages (from html5lib<2,>=0.999->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.5.1)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2017.7.27.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2.6)
Requirement already satisfied: olefile in /usr/local/lib/python3.6/site-packages (from Pillow<6.0,>=4.0.0->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.44)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.6/site-packages (from Jinja2>=2.3->sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.6/site-packages (from packaging->sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.2.0)
Requirement already satisfied: text-unidecode==1.2 in ./.venv/lib/python3.6/site-packages (from Faker>=0.7.0->factory_boy==2.8.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.2)
wagtail-treemodeladmin 1.0.4 has requirement Django<2.1,>=1.11, but you'll have django 2.1.11 which is incompatible.
wagtail-treemodeladmin 1.0.4 has requirement wagtail<2.3,>=1.13, but you'll have wagtail 2.4 which is incompatible.
wagtail-app-pages 0.2.3 has requirement wagtail<2.2,>=1.11.1, but you'll have wagtail 2.4 which is incompatible.
django-registration 2.4.2 has requirement Django!=1.9.*,<2.1,>=1.8, but you'll have django 2.1.11 which is incompatible.
Installing collected packages: Django, draftjs-exporter, wagtail, sphinx, pluggy, pytest, wagtail-personalisation, entrypoints
  Found existing installation: Django 2.0.9
    Not uninstalling django at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'Django'. No files were found to uninstall.
  Found existing installation: draftjs-exporter 2.0.0
    Not uninstalling draftjs-exporter at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'draftjs-exporter'. No files were found to uninstall.
  Found existing installation: wagtail 2.3
    Not uninstalling wagtail at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'wagtail'. No files were found to uninstall.
  Found existing installation: Sphinx 1.7.5
    Not uninstalling sphinx at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'Sphinx'. No files were found to uninstall.
  Found existing installation: pluggy 0.12.0
    Not uninstalling pluggy at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'pluggy'. No files were found to uninstall.
  Found existing installation: pytest 4.6.3
    Not uninstalling pytest at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'pytest'. No files were found to uninstall.
  Found existing installation: wagtail-personalisation 0.13.0
    Uninstalling wagtail-personalisation-0.13.0:
      Successfully uninstalled wagtail-personalisation-0.13.0
  Running setup.py develop for wagtail-personalisation
  Found existing installation: entrypoints 0.2.3
    Not uninstalling entrypoints at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'entrypoints'. No files were found to uninstall.
Successfully installed Django-2.1.11 draftjs-exporter-2.1.6 entrypoints-0.3 pluggy-0.6.0 pytest-3.4.2 sphinx-2.1.2 wagtail-2.4 wagtail-personalisation
sandbox/manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, home, sessions, sites, taggit, user, wagtail_personalisation, wagtailadmin, wagtailcore, wagtaildocs, wagtailembeds, wagtailforms, wagtailimages, wagtailredirects, wagtailsearch, wagtailusers
Running migrations:
  No migrations to apply.
sandbox/manage.py loaddata sandbox/exampledata/users.json
Installed 1 object(s) from 1 fixture(s)
sandbox/manage.py loaddata sandbox/exampledata/personalisation.json
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 303, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: main.wagtailcore_page__old

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "sandbox/manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
    self.loaddata(fixture_labels)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 113, in loaddata
    self.load_label(fixture_label)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 177, in load_label
    obj.save(using=self.using)
  File "/usr/local/lib/python3.6/site-packages/django/core/serializers/base.py", line 205, in save
    models.Model.save_base(self.object, using=using, raw=True, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 759, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 823, in _save_table
    forced_update)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 872, in _do_update
    return filtered._update(values) > 0
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 712, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1379, in execute_sql
    cursor = super().execute_sql(result_type)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1068, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 100, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 68, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 303, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: Problem installing fixture '/Users/technical/code/pb/wagtail-personalisation/sandbox/exampledata/personalisation.json': Could not load wagtail_personalisation.VisitCountRule(pk=1): no such table: main.wagtailcore_page__old
make: *** [sandbox] Error 1
jberghoef commented 5 years ago

Hi Matt,

I notice in the stacktrace above that no migrations have been applied. Could you please remove the sqlite database in the root directory of the project and run the make sandbox command again?

Thanks,

Jasper

mattlinares commented 5 years ago

Hi Jasper, Thanks for this. To give a full overview, I re-cloned, installed a new pipenv and made sandbox afresh. Here's the full trace:

~/c/p/wagtail-personalisation (master |  πŸ‘ ) > pipenv install
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project…
Pipfile: /Users/technical/code/pb/wagtail-personalisation/Pipfile
Using /usr/local/opt/python/bin/python3.6 (3.6.5) to create virtualenv…
β ΄ Creating virtual environment...Already using interpreter /usr/local/opt/python/bin/python3.6
Using base prefix '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/technical/code/pb/wagtail-personalisation/.venv/bin/python3.6
Also creating executable in /Users/technical/code/pb/wagtail-personalisation/.venv/bin/python
Installing setuptools, pip, wheel...done.

βœ” Successfully created virtual environment!
Virtualenv location: /Users/technical/code/pb/wagtail-personalisation/.venv
Creating a Pipfile for this project…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (ca72e7)!
Installing dependencies from Pipfile.lock (ca72e7)…
  🐍   β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰ 0/0 β€” 00:00:00
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
~/c/p/wagtail-personalisation (master |  πŸ” 533) > pipenv shell
Launching subshell in virtual environment…
Welcome to fish, the friendly interactive shell
~/c/p/wagtail-personalisation (master |  πŸ” 533) >
 source /Users/technical/code/pb/wagtail-personalisation/.venv/bin/activate.fish
(wagtail-personalisation) ~/c/p/wagtail-personalisation (master |  πŸ” 533) > l
CHANGES           Pipfile           logo.png          setup.cfg         webpack.config.js
CONTRIBUTORS.rst  Pipfile.lock      logo_bw.png       setup.py          yarn.lock
LICENSE           README.rst        package.json      src
MANIFEST.in       docs              sandbox           tests
Makefile          frontend          screenshot.png    tox.ini
(wagtail-personalisation) ~/c/p/wagtail-personalisation (master |  πŸ” 533) > make sandbox
pip install -r sandbox/requirements.txt
Obtaining file:///Users/technical/code/pb/wagtail-personalisation (from -r sandbox/requirements.txt (line 4))
Collecting Django<2.2,>=2.1 (from -r sandbox/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/8c/49/d5038239995594281478bf209f8d93524ad342d500009a697b27f884668a/Django-2.1.11-py3-none-any.whl
Collecting wagtail==2.4 (from -r sandbox/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/5a/ed/ca800bf6fdd4ad387578d2b41be1b2059ddc302cc0ac159d6904e35afe26/wagtail-2.4-py3-none-any.whl
Requirement already satisfied: django-debug-toolbar==1.9.1 in /usr/local/lib/python3.6/site-packages (from -r sandbox/requirements.txt (line 3)) (1.9.1)
Requirement already satisfied: user-agents>=1.1.0 in /usr/local/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.0)
Requirement already satisfied: wagtailfontawesome>=1.1.3 in /usr/local/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.3)
Collecting pycountry (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/16/b6/154fe93072051d8ce7bf197690957b6d0ac9a21d51c9a1d05bd7c6fdb16f/pycountry-19.8.18.tar.gz (10.0MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 10.0MB 2.5MB/s
Collecting sphinx>=1.7.6 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/8e/4c/95a21788db2e1653e931420f561015a0bbc9bd4660c4520467ab9e733eb2/Sphinx-2.2.0-py3-none-any.whl (3.3MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3.3MB 3.7MB/s
Collecting sphinx_rtd_theme>=0.4.0 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/60/b4/4df37087a1d36755e3a3bfd2a30263f358d2dea21938240fa02313d45f51/sphinx_rtd_theme-0.4.3-py2.py3-none-any.whl
Collecting factory_boy==2.8.1 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/8d/0a/1466fd13883dbc4a47e16d4a316389f0e0aa23bdef27759603467f9e6ecb/factory_boy-2.8.1-py2.py3-none-any.whl
Collecting flake8-blind-except (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting flake8-debugger (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting flake8-imports (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/24/a3/c01143538443520c9b8ee4f3f2819cc5a76aa7348b172c4e4cf37b491dd0/flake8_imports-0.1.1-py2.py3-none-any.whl
Collecting flake8 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/26/de/3f815a99d86eb10464ea7bd6059c0172c7ca97d4bdcfca41051b388a653b/flake8-3.7.8-py2.py3-none-any.whl
Collecting freezegun==0.3.8 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/0f/e9/c7d3ff0a0f1650dae522ac75bd1990c20a6fbf521385a8f6902b5d1f99f4/freezegun-0.3.8-py2.py3-none-any.whl
Collecting pytest-cov==2.5.1 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/30/7d/7f6a78ae44a1248ee28cc777586c18b28a1df903470e5d34a6e25712b8aa/pytest_cov-2.5.1-py2.py3-none-any.whl
Collecting pytest-django==3.1.2 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/0f/c4/123ec7829e175af511c5be0501df9552261c2bf549b8e7a43ba35505594e/pytest_django-3.1.2-py2.py3-none-any.whl
Collecting pytest-pythonpath==0.7.2 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/b3/12/866e6088e616be0bb9cfe9fdde762c0875cf1ff9ad091622335bf5d7ad19/pytest_pythonpath-0.7.2-py2.py3-none-any.whl
Collecting pytest-sugar==0.9.1 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting pytest==3.4.2 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/f1/5c/411ceafef3b5e5486d16f174db18dc26f49e7704dbf59ef488e95db47339/pytest-3.4.2-py2.py3-none-any.whl
Collecting wagtail_factories==1.1.0 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/fd/30/c874f14280fcee1db5db78ed0ca086669482aff9c2969aa4816b38304204/wagtail_factories-1.1.0-py2.py3-none-any.whl
Collecting pytest-mock==1.6.3 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/14/92/0791274b2964fa8a568c84f7cdff8e218dfa6c2e1bc2ebd2d7ae0b69bc4c/pytest_mock-1.6.3-py2.py3-none-any.whl
Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from Django<2.2,>=2.1->-r sandbox/requirements.txt (line 1)) (2017.2)
Requirement already satisfied: Pillow<6.0,>=4.0.0 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3.0)
Requirement already satisfied: Unidecode<2.0,>=0.04.14 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.4.21)
Requirement already satisfied: requests<3.0,>=2.11.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2.18.4)
Requirement already satisfied: six<2.0,>=1.11 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.11.0)
Requirement already satisfied: Willow<1.2,>=1.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.1)
Requirement already satisfied: djangorestframework<4.0,>=3.7.4 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (3.8.2)
Requirement already satisfied: django-treebeard<5.0,>=4.2.0 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3)
Requirement already satisfied: django-modelcluster<5.0,>=4.2 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3)
Requirement already satisfied: beautifulsoup4<4.6.1,>=4.5.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.6.0)
Requirement already satisfied: html5lib<2,>=0.999 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.999999999)
Requirement already satisfied: django-taggit<0.24,>=0.23 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.23.0)
Collecting draftjs-exporter<3.0,>=2.1.5 (from wagtail==2.4->-r sandbox/requirements.txt (line 2))
Requirement already satisfied: sqlparse>=0.2.0 in /usr/local/lib/python3.6/site-packages (from django-debug-toolbar==1.9.1->-r sandbox/requirements.txt (line 3)) (0.2.4)
Requirement already satisfied: ua-parser>=0.4.1 in /usr/local/lib/python3.6/site-packages (from user-agents>=1.1.0->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.8.0)
Requirement already satisfied: alabaster<0.8,>=0.7 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.7.11)
Requirement already satisfied: babel!=2.0,>=1.3 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.6.0)
Collecting sphinxcontrib-applehelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/13/9a/4428b3114d654cb1cd34d90d5e6fab938d5436f94a571155187ea1dd78b4/sphinxcontrib_applehelp-1.0.1-py2.py3-none-any.whl
Collecting sphinxcontrib-jsmath (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/c2/42/4c8646762ee83602e3fb3fbe774c2fac12f317deb0b5dbeeedd2d3ba4b77/sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.2.0)
Requirement already satisfied: Jinja2>=2.3 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.10)
Requirement already satisfied: snowballstemmer>=1.1 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.2.1)
Collecting sphinxcontrib-htmlhelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/e4/35/80a67cc493f4a8a9634ab203a77aaa1b84d79ccb1c02eca72cb084d2c7f7/sphinxcontrib_htmlhelp-1.0.2-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (39.2.0)
Requirement already satisfied: imagesize in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.0)
Collecting sphinxcontrib-qthelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ce/5b/4747c3ba98b3a3e21a66faa183d8f79b9ded70e74212a7988d236a6eb78a/sphinxcontrib_qthelp-1.0.2-py2.py3-none-any.whl
Collecting sphinxcontrib-serializinghtml (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/57/b3/3648e48fa5682e61e9839d62de4e23af1795ceb738d68d73bd974257a95c/sphinxcontrib_serializinghtml-1.1.3-py2.py3-none-any.whl
Requirement already satisfied: packaging in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (17.1)
Collecting sphinxcontrib-devhelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/b0/a3/fea98741f0b2f2902fbf6c35c8e91b22cd0dd13387291e81d457f9a93066/sphinxcontrib_devhelp-1.0.1-py2.py3-none-any.whl
Requirement already satisfied: docutils>=0.12 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.14)
Collecting Faker>=0.7.0 (from factory_boy==2.8.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/67/ed/94a23058daff92545869848ccbcaeb826bc79c6ba4459c7df31ebe1f196d/Faker-2.0.1-py2.py3-none-any.whl (878kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 880kB 4.2MB/s
Collecting pycodestyle (from flake8-debugger->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/0e/0c/04a353e104d2f324f8ee5f4b32012618c1c86dd79e52a433b64fceed511b/pycodestyle-2.5.0-py2.py3-none-any.whl
Collecting isort (from flake8-imports->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/e5/b0/c121fd1fa3419ea9bfd55c7f9c4fedfec5143208d8c7ad3ce3db6c623c21/isort-4.3.21-py2.py3-none-any.whl
Collecting pyflakes<2.2.0,>=2.1.0 (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/84/f2/ed0ffb887f8138a8fe5a621b8c0bb9598bfb3989e029f6c6a85ee66628ee/pyflakes-2.1.1-py2.py3-none-any.whl
Collecting mccabe<0.7.0,>=0.6.0 (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting entrypoints<0.4.0,>=0.3.0 (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil!=2.0,>=1.0 in /usr/local/lib/python3.6/site-packages (from freezegun==0.3.8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.7.3)
Requirement already satisfied: coverage>=3.7.1 in /usr/local/lib/python3.6/site-packages (from pytest-cov==2.5.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (4.5.3)
Collecting termcolor>=1.1.0 (from pytest-sugar==0.9.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting attrs>=17.2.0 (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Requirement already satisfied: py>=1.5.0 in /usr/local/lib/python3.6/site-packages (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.8.0)
Collecting pluggy<0.7,>=0.5 (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ba/65/ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7/pluggy-0.6.0-py3-none-any.whl
Requirement already satisfied: olefile in /usr/local/lib/python3.6/site-packages (from Pillow<6.0,>=4.0.0->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.44)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2017.7.27.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (3.0.4)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.22)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2.6)
Requirement already satisfied: webencodings in /usr/local/lib/python3.6/site-packages (from html5lib<2,>=0.999->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.5.1)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.6/site-packages (from Jinja2>=2.3->sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.6/site-packages (from packaging->sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.2.0)
Collecting text-unidecode==1.2 (from Faker>=0.7.0->factory_boy==2.8.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/79/42/d717cc2b4520fb09e45b344b1b0b4e81aa672001dd128c180fabc655c341/text_unidecode-1.2-py2.py3-none-any.whl
Building wheels for collected packages: pycountry
  Running setup.py bdist_wheel for pycountry ... done
  Stored in directory: /Users/technical/Library/Caches/pip/wheels/a2/98/bf/f0fa1c6bf8cf2cbdb750d583f84be51c2cd8272460b8b36bd3
Successfully built pycountry
wagtail-treemodeladmin 1.0.4 has requirement Django<2.1,>=1.11, but you'll have django 2.1.11 which is incompatible.
wagtail-treemodeladmin 1.0.4 has requirement wagtail<2.3,>=1.13, but you'll have wagtail 2.4 which is incompatible.
wagtail-app-pages 0.2.3 has requirement wagtail<2.2,>=1.11.1, but you'll have wagtail 2.4 which is incompatible.
django-registration 2.4.2 has requirement Django!=1.9.*,<2.1,>=1.8, but you'll have django 2.1.11 which is incompatible.
Installing collected packages: Django, draftjs-exporter, wagtail, pycountry, sphinxcontrib-applehelp, sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, sphinxcontrib-qthelp, sphinxcontrib-serializinghtml, sphinxcontrib-devhelp, sphinx, sphinx-rtd-theme, text-unidecode, Faker, factory-boy, flake8-blind-except, pyflakes, mccabe, pycodestyle, entrypoints, flake8, flake8-debugger, isort, flake8-imports, freezegun, attrs, pluggy, pytest, pytest-cov, pytest-django, pytest-pythonpath, termcolor, pytest-sugar, wagtail-factories, pytest-mock, wagtail-personalisation
  Found existing installation: Django 2.0.9
    Not uninstalling django at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'Django'. No files were found to uninstall.
  Found existing installation: draftjs-exporter 2.0.0
    Not uninstalling draftjs-exporter at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'draftjs-exporter'. No files were found to uninstall.
  Found existing installation: wagtail 2.3
    Not uninstalling wagtail at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'wagtail'. No files were found to uninstall.
  Found existing installation: Sphinx 1.7.5
    Not uninstalling sphinx at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'Sphinx'. No files were found to uninstall.
  Found existing installation: entrypoints 0.2.3
    Not uninstalling entrypoints at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'entrypoints'. No files were found to uninstall.
  Found existing installation: pluggy 0.12.0
    Not uninstalling pluggy at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'pluggy'. No files were found to uninstall.
  Found existing installation: pytest 4.6.3
    Not uninstalling pytest at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'pytest'. No files were found to uninstall.
  Running setup.py develop for wagtail-personalisation
Successfully installed Django-2.1.11 Faker-2.0.1 attrs-19.1.0 draftjs-exporter-2.1.6 entrypoints-0.3 factory-boy-2.8.1 flake8-3.7.8 flake8-blind-except-0.1.1 flake8-debugger-3.1.0 flake8-imports-0.1.1 freezegun-0.3.8 isort-4.3.21 mccabe-0.6.1 pluggy-0.6.0 pycodestyle-2.5.0 pycountry-19.8.18 pyflakes-2.1.1 pytest-3.4.2 pytest-cov-2.5.1 pytest-django-3.1.2 pytest-mock-1.6.3 pytest-pythonpath-0.7.2 pytest-sugar-0.9.1 sphinx-2.2.0 sphinx-rtd-theme-0.4.3 sphinxcontrib-applehelp-1.0.1 sphinxcontrib-devhelp-1.0.1 sphinxcontrib-htmlhelp-1.0.2 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.2 sphinxcontrib-serializinghtml-1.1.3 termcolor-1.1.0 text-unidecode-1.2 wagtail-2.4 wagtail-factories-1.1.0 wagtail-personalisation
sandbox/manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, home, sessions, sites, taggit, user, wagtail_personalisation, wagtailadmin, wagtailcore, wagtaildocs, wagtailembeds, wagtailforms, wagtailimages, wagtailredirects, wagtailsearch, wagtailusers
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0001_initial... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying user.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying wagtailcore.0001_squashed_0016_change_page_url_path_to_text_field... OK
  Applying wagtailcore.0017_change_edit_page_permission_description... OK
  Applying wagtailcore.0018_pagerevision_submitted_for_moderation_index... OK
  Applying wagtailcore.0019_verbose_names_cleanup... OK
  Applying wagtailcore.0020_add_index_on_page_first_published_at... OK
  Applying wagtailcore.0021_capitalizeverbose... OK
  Applying wagtailcore.0022_add_site_name... OK
  Applying wagtailcore.0023_alter_page_revision_on_delete_behaviour... OK
  Applying wagtailcore.0024_collection... OK
  Applying wagtailcore.0025_collection_initial_data... OK
  Applying wagtailcore.0026_group_collection_permission... OK
  Applying wagtailcore.0027_fix_collection_path_collation... OK
  Applying wagtailcore.0024_alter_page_content_type_on_delete_behaviour... OK
  Applying wagtailcore.0028_merge... OK
  Applying wagtailcore.0029_unicode_slugfield_dj19... OK
  Applying wagtailcore.0030_index_on_pagerevision_created_at... OK
  Applying wagtailcore.0031_add_page_view_restriction_types... OK
  Applying wagtailcore.0032_add_bulk_delete_page_permission... OK
  Applying wagtailcore.0033_remove_golive_expiry_help_text... OK
  Applying wagtail_personalisation.0001_initial... OK
  Applying wagtail_personalisation.0002_auto_20161205_1623... OK
  Applying wagtail_personalisation.0003_auto_20161206_1005... OK
  Applying wagtail_personalisation.0004_segment_persistent... OK
  Applying wagtail_personalisation.0005_userisloggedinrule... OK
  Applying wagtail_personalisation.0006_segment_match_any... OK
  Applying wagtail_personalisation.0007_dayrule... OK
  Applying wagtail_personalisation.0008_devicerule... OK
  Applying wagtail_personalisation.0009_auto_20170531_0428... OK
  Applying wagtail_personalisation.0010_auto_20170531_1101... OK
  Applying wagtail_personalisation.0011_personalisablepagemetadata... OK
  Applying home.0001_initial... OK
  Applying home.0002_create_homepage... OK
  Applying home.0003_homepage_text_content... OK
  Applying sessions.0001_initial... OK
  Applying sites.0001_initial... OK
  Applying sites.0002_alter_domain_unique... OK
  Applying taggit.0001_initial... OK
  Applying taggit.0002_auto_20150616_2121... OK
  Applying user.0002_auto_20190315_1254... OK
  Applying wagtail_personalisation.0012_remove_personalisablepagemetadata_is_segmented... OK
  Applying wagtail_personalisation.0013_add_dynamic_static_to_segment... OK
  Applying wagtail_personalisation.0015_static_users... OK
  Applying wagtail_personalisation.0016_auto_20180125_0918... OK
  Applying wagtail_personalisation.0017_segment_randomisation_percent... OK
  Applying wagtail_personalisation.0018_segment_excluded_users... OK
  Applying wagtail_personalisation.0019_auto_20180526_1425... OK
  Applying wagtail_personalisation.0020_rules_delete_relatedqueryname... OK
  Applying wagtail_personalisation.0021_personalisablepagemetadata_segment_set_on_delete_protect... OK
  Applying wagtail_personalisation.0022_personalisablepagemetadata_canonical_protect... OK
  Applying wagtail_personalisation.0023_personalisablepagemetadata_variant_cascade... OK
  Applying wagtail_personalisation.0024_origincountryrule... OK
  Applying wagtail_personalisation.0025_auto_20190822_0627... OK
  Applying wagtailadmin.0001_create_admin_access_permissions... OK
  Applying wagtailcore.0034_page_live_revision... OK
  Applying wagtailcore.0035_page_last_published_at... OK
  Applying wagtailcore.0036_populate_page_last_published_at... OK
  Applying wagtailcore.0037_set_page_owner_editable... OK
  Applying wagtailcore.0038_make_first_published_at_editable... OK
  Applying wagtailcore.0039_collectionviewrestriction... OK
  Applying wagtailcore.0040_page_draft_title... OK
  Applying wagtaildocs.0001_initial... OK
  Applying wagtaildocs.0002_initial_data... OK
  Applying wagtaildocs.0003_add_verbose_names... OK
  Applying wagtaildocs.0004_capitalizeverbose... OK
  Applying wagtaildocs.0005_document_collection... OK
  Applying wagtaildocs.0006_copy_document_permissions_to_collections... OK
  Applying wagtaildocs.0005_alter_uploaded_by_user_on_delete_action... OK
  Applying wagtaildocs.0007_merge... OK
  Applying wagtaildocs.0008_document_file_size... OK
  Applying wagtailembeds.0001_initial... OK
  Applying wagtailembeds.0002_add_verbose_names... OK
  Applying wagtailembeds.0003_capitalizeverbose... OK
  Applying wagtailforms.0001_initial... OK
  Applying wagtailforms.0002_add_verbose_names... OK
  Applying wagtailforms.0003_capitalizeverbose... OK
  Applying wagtailimages.0001_initial... OK
  Applying wagtailimages.0002_initial_data... OK
  Applying wagtailimages.0003_fix_focal_point_fields... OK
  Applying wagtailimages.0004_make_focal_point_key_not_nullable... OK
  Applying wagtailimages.0005_make_filter_spec_unique... OK
  Applying wagtailimages.0006_add_verbose_names... OK
  Applying wagtailimages.0007_image_file_size... OK
  Applying wagtailimages.0008_image_created_at_index... OK
  Applying wagtailimages.0009_capitalizeverbose... OK
  Applying wagtailimages.0010_change_on_delete_behaviour... OK
  Applying wagtailimages.0011_image_collection... OK
  Applying wagtailimages.0012_copy_image_permissions_to_collections... OK
  Applying wagtailimages.0013_make_rendition_upload_callable... OK
  Applying wagtailimages.0014_add_filter_spec_field... OK
  Applying wagtailimages.0015_fill_filter_spec_field... OK
  Applying wagtailimages.0016_deprecate_rendition_filter_relation... OK
  Applying wagtailimages.0017_reduce_focal_point_key_max_length... OK
  Applying wagtailimages.0018_remove_rendition_filter... OK
  Applying wagtailimages.0019_delete_filter... OK
  Applying wagtailimages.0020_add-verbose-name... OK
  Applying wagtailimages.0021_image_file_hash... OK
  Applying wagtailredirects.0001_initial... OK
  Applying wagtailredirects.0002_add_verbose_names... OK
  Applying wagtailredirects.0003_make_site_field_editable... OK
  Applying wagtailredirects.0004_set_unique_on_path_and_site... OK
  Applying wagtailredirects.0005_capitalizeverbose... OK
  Applying wagtailredirects.0006_redirect_increase_max_length... OK
  Applying wagtailsearch.0001_initial... OK
  Applying wagtailsearch.0002_add_verbose_names... OK
  Applying wagtailsearch.0003_remove_editors_pick... OK
  Applying wagtailusers.0001_initial... OK
  Applying wagtailusers.0002_add_verbose_name_on_userprofile... OK
  Applying wagtailusers.0003_add_verbose_names... OK
  Applying wagtailusers.0004_capitalizeverbose... OK
  Applying wagtailusers.0005_make_related_name_wagtail_specific... OK
  Applying wagtailusers.0006_userprofile_prefered_language... OK
  Applying wagtailusers.0007_userprofile_current_time_zone... OK
  Applying wagtailusers.0008_userprofile_avatar... OK
sandbox/manage.py loaddata sandbox/exampledata/users.json
Installed 1 object(s) from 1 fixture(s)
sandbox/manage.py loaddata sandbox/exampledata/personalisation.json
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 303, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: main.wagtailcore_page__old

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "sandbox/manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
    self.loaddata(fixture_labels)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 113, in loaddata
    self.load_label(fixture_label)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 177, in load_label
    obj.save(using=self.using)
  File "/usr/local/lib/python3.6/site-packages/django/core/serializers/base.py", line 205, in save
    models.Model.save_base(self.object, using=using, raw=True, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 759, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 823, in _save_table
    forced_update)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 872, in _do_update
    return filtered._update(values) > 0
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 712, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1379, in execute_sql
    cursor = super().execute_sql(result_type)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1068, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 100, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 68, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 303, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: Problem installing fixture '/Users/technical/code/pb/wagtail-personalisation/sandbox/exampledata/personalisation.json': Could not load wagtail_personalisation.VisitCountRule(pk=1): no such table: main.wagtailcore_page__old
make: *** [sandbox] Error 1
(wagtail-personalisation) ~/c/p/wagtail-personalisation (master |  πŸ” 8933) >
jberghoef commented 5 years ago

Hi Matt,

Thank you for the new stacktrace. Could you please provide me with the version number of Sqlite that you're running?

Thanks,

Jasper

mattlinares commented 5 years ago

This should be it I think! :)

(wagtail-personalisation) ~/c/p/w/sandbox (master |  πŸ‘ ) > python manage.py dbshell
SQLite version 3.24.0 2018-06-04 14:10:15
Enter ".help" for usage hints.
sqlite>
jberghoef commented 5 years ago

Could you update your sqlite installation to the newest version? I suspect the error is caused by a bug resolved in newer versions of Sqlite.

mattlinares commented 5 years ago

Ok, I have done that am now at 3.29.0 but there are still problems. Here's what I get:

(wagtail-personalisation) ➜  wagtail-personalisation git:(master) βœ— sqlite3
SQLite version 3.29.0 2019-07-10 17:32:03
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
(wagtail-personalisation) ➜  wagtail-personalisation git:(master) βœ— make sandbox
pip install -r sandbox/requirements.txt
Obtaining file:///Users/technical/code/pb/wagtail-personalisation (from -r sandbox/requirements.txt (line 4))
Collecting Django<2.2,>=2.1 (from -r sandbox/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/8c/49/d5038239995594281478bf209f8d93524ad342d500009a697b27f884668a/Django-2.1.11-py3-none-any.whl
Collecting wagtail==2.4 (from -r sandbox/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/5a/ed/ca800bf6fdd4ad387578d2b41be1b2059ddc302cc0ac159d6904e35afe26/wagtail-2.4-py3-none-any.whl
Requirement already satisfied: django-debug-toolbar==1.9.1 in /usr/local/lib/python3.6/site-packages (from -r sandbox/requirements.txt (line 3)) (1.9.1)
Requirement already satisfied: user-agents>=1.1.0 in /usr/local/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.0)
Requirement already satisfied: wagtailfontawesome>=1.1.3 in /usr/local/lib/python3.6/site-packages (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.1.3)
Collecting pycountry (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting sphinx>=1.7.6 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/8e/4c/95a21788db2e1653e931420f561015a0bbc9bd4660c4520467ab9e733eb2/Sphinx-2.2.0-py3-none-any.whl
Collecting sphinx_rtd_theme>=0.4.0 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/60/b4/4df37087a1d36755e3a3bfd2a30263f358d2dea21938240fa02313d45f51/sphinx_rtd_theme-0.4.3-py2.py3-none-any.whl
Collecting factory_boy==2.8.1 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/8d/0a/1466fd13883dbc4a47e16d4a316389f0e0aa23bdef27759603467f9e6ecb/factory_boy-2.8.1-py2.py3-none-any.whl
Collecting flake8-blind-except (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting flake8-debugger (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting flake8-imports (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/24/a3/c01143538443520c9b8ee4f3f2819cc5a76aa7348b172c4e4cf37b491dd0/flake8_imports-0.1.1-py2.py3-none-any.whl
Collecting flake8 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/26/de/3f815a99d86eb10464ea7bd6059c0172c7ca97d4bdcfca41051b388a653b/flake8-3.7.8-py2.py3-none-any.whl
Collecting freezegun==0.3.8 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/0f/e9/c7d3ff0a0f1650dae522ac75bd1990c20a6fbf521385a8f6902b5d1f99f4/freezegun-0.3.8-py2.py3-none-any.whl
Collecting pytest-cov==2.5.1 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/30/7d/7f6a78ae44a1248ee28cc777586c18b28a1df903470e5d34a6e25712b8aa/pytest_cov-2.5.1-py2.py3-none-any.whl
Collecting pytest-django==3.1.2 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/0f/c4/123ec7829e175af511c5be0501df9552261c2bf549b8e7a43ba35505594e/pytest_django-3.1.2-py2.py3-none-any.whl
Collecting pytest-pythonpath==0.7.2 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/b3/12/866e6088e616be0bb9cfe9fdde762c0875cf1ff9ad091622335bf5d7ad19/pytest_pythonpath-0.7.2-py2.py3-none-any.whl
Collecting pytest-sugar==0.9.1 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting pytest==3.4.2 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/f1/5c/411ceafef3b5e5486d16f174db18dc26f49e7704dbf59ef488e95db47339/pytest-3.4.2-py2.py3-none-any.whl
Collecting wagtail_factories==1.1.0 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/fd/30/c874f14280fcee1db5db78ed0ca086669482aff9c2969aa4816b38304204/wagtail_factories-1.1.0-py2.py3-none-any.whl
Collecting pytest-mock==1.6.3 (from wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/14/92/0791274b2964fa8a568c84f7cdff8e218dfa6c2e1bc2ebd2d7ae0b69bc4c/pytest_mock-1.6.3-py2.py3-none-any.whl
Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from Django<2.2,>=2.1->-r sandbox/requirements.txt (line 1)) (2017.2)
Collecting Pillow<6.0,>=4.0.0 (from wagtail==2.4->-r sandbox/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/c9/ed/27cc92e99b9ccaa0985a66133baeea7e8a3371d3c04cfa353aaa3b81aac1/Pillow-5.4.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied: Unidecode<2.0,>=0.04.14 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.4.21)
Collecting draftjs-exporter<3.0,>=2.1.5 (from wagtail==2.4->-r sandbox/requirements.txt (line 2))
Requirement already satisfied: Willow<1.2,>=1.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.1)
Requirement already satisfied: django-treebeard<5.0,>=4.2.0 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3)
Requirement already satisfied: requests<3.0,>=2.11.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2.18.4)
Requirement already satisfied: beautifulsoup4<4.6.1,>=4.5.1 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.6.0)
Requirement already satisfied: django-modelcluster<5.0,>=4.2 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (4.3)
Requirement already satisfied: six<2.0,>=1.11 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.11.0)
Requirement already satisfied: html5lib<2,>=0.999 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.999999999)
Requirement already satisfied: djangorestframework<4.0,>=3.7.4 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (3.8.2)
Requirement already satisfied: django-taggit<0.24,>=0.23 in /usr/local/lib/python3.6/site-packages (from wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.23.0)
Requirement already satisfied: sqlparse>=0.2.0 in /usr/local/lib/python3.6/site-packages (from django-debug-toolbar==1.9.1->-r sandbox/requirements.txt (line 3)) (0.2.4)
Requirement already satisfied: ua-parser>=0.4.1 in /usr/local/lib/python3.6/site-packages (from user-agents>=1.1.0->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.8.0)
Requirement already satisfied: Pygments>=2.0 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.2.0)
Collecting sphinxcontrib-htmlhelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/e4/35/80a67cc493f4a8a9634ab203a77aaa1b84d79ccb1c02eca72cb084d2c7f7/sphinxcontrib_htmlhelp-1.0.2-py2.py3-none-any.whl
Requirement already satisfied: snowballstemmer>=1.1 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.2.1)
Requirement already satisfied: docutils>=0.12 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.14)
Requirement already satisfied: Jinja2>=2.3 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.10)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (39.2.0)
Requirement already satisfied: babel!=2.0,>=1.3 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.6.0)
Collecting sphinxcontrib-jsmath (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/c2/42/4c8646762ee83602e3fb3fbe774c2fac12f317deb0b5dbeeedd2d3ba4b77/sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl
Requirement already satisfied: alabaster<0.8,>=0.7 in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (0.7.11)
Collecting sphinxcontrib-qthelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ce/5b/4747c3ba98b3a3e21a66faa183d8f79b9ded70e74212a7988d236a6eb78a/sphinxcontrib_qthelp-1.0.2-py2.py3-none-any.whl
Collecting sphinxcontrib-applehelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/13/9a/4428b3114d654cb1cd34d90d5e6fab938d5436f94a571155187ea1dd78b4/sphinxcontrib_applehelp-1.0.1-py2.py3-none-any.whl
Collecting sphinxcontrib-serializinghtml (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/57/b3/3648e48fa5682e61e9839d62de4e23af1795ceb738d68d73bd974257a95c/sphinxcontrib_serializinghtml-1.1.3-py2.py3-none-any.whl
Requirement already satisfied: imagesize in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0.0)
Requirement already satisfied: packaging in /usr/local/lib/python3.6/site-packages (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (17.1)
Collecting sphinxcontrib-devhelp (from sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/b0/a3/fea98741f0b2f2902fbf6c35c8e91b22cd0dd13387291e81d457f9a93066/sphinxcontrib_devhelp-1.0.1-py2.py3-none-any.whl
Collecting Faker>=0.7.0 (from factory_boy==2.8.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/67/ed/94a23058daff92545869848ccbcaeb826bc79c6ba4459c7df31ebe1f196d/Faker-2.0.1-py2.py3-none-any.whl
Collecting pycodestyle (from flake8-debugger->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/0e/0c/04a353e104d2f324f8ee5f4b32012618c1c86dd79e52a433b64fceed511b/pycodestyle-2.5.0-py2.py3-none-any.whl
Collecting isort (from flake8-imports->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/e5/b0/c121fd1fa3419ea9bfd55c7f9c4fedfec5143208d8c7ad3ce3db6c623c21/isort-4.3.21-py2.py3-none-any.whl
Collecting mccabe<0.7.0,>=0.6.0 (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting pyflakes<2.2.0,>=2.1.0 (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/84/f2/ed0ffb887f8138a8fe5a621b8c0bb9598bfb3989e029f6c6a85ee66628ee/pyflakes-2.1.1-py2.py3-none-any.whl
Collecting entrypoints<0.4.0,>=0.3.0 (from flake8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil!=2.0,>=1.0 in /usr/local/lib/python3.6/site-packages (from freezegun==0.3.8->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.7.3)
Requirement already satisfied: coverage>=3.7.1 in /usr/local/lib/python3.6/site-packages (from pytest-cov==2.5.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (4.5.3)
Collecting termcolor>=1.1.0 (from pytest-sugar==0.9.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
Collecting attrs>=17.2.0 (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Requirement already satisfied: py>=1.5.0 in /usr/local/lib/python3.6/site-packages (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.8.0)
Collecting pluggy<0.7,>=0.5 (from pytest==3.4.2->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/ba/65/ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7/pluggy-0.6.0-py3-none-any.whl
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2017.7.27.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests<3.0,>=2.11.1->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (1.22)
Requirement already satisfied: webencodings in /usr/local/lib/python3.6/site-packages (from html5lib<2,>=0.999->wagtail==2.4->-r sandbox/requirements.txt (line 2)) (0.5.1)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.6/site-packages (from Jinja2>=2.3->sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (1.0)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.6/site-packages (from packaging->sphinx>=1.7.6->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4)) (2.2.0)
Collecting text-unidecode==1.2 (from Faker>=0.7.0->factory_boy==2.8.1->wagtail-personalisation==0.13.0->-r sandbox/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/79/42/d717cc2b4520fb09e45b344b1b0b4e81aa672001dd128c180fabc655c341/text_unidecode-1.2-py2.py3-none-any.whl
wagtail-treemodeladmin 1.0.4 has requirement Django<2.1,>=1.11, but you'll have django 2.1.11 which is incompatible.
wagtail-treemodeladmin 1.0.4 has requirement wagtail<2.3,>=1.13, but you'll have wagtail 2.4 which is incompatible.
wagtail-app-pages 0.2.3 has requirement wagtail<2.2,>=1.11.1, but you'll have wagtail 2.4 which is incompatible.
django-registration 2.4.2 has requirement Django!=1.9.*,<2.1,>=1.8, but you'll have django 2.1.11 which is incompatible.
Installing collected packages: Django, Pillow, draftjs-exporter, wagtail, pycountry, sphinxcontrib-htmlhelp, sphinxcontrib-jsmath, sphinxcontrib-qthelp, sphinxcontrib-applehelp, sphinxcontrib-serializinghtml, sphinxcontrib-devhelp, sphinx, sphinx-rtd-theme, text-unidecode, Faker, factory-boy, flake8-blind-except, mccabe, pyflakes, entrypoints, pycodestyle, flake8, flake8-debugger, isort, flake8-imports, freezegun, attrs, pluggy, pytest, pytest-cov, pytest-django, pytest-pythonpath, termcolor, pytest-sugar, wagtail-factories, pytest-mock, wagtail-personalisation
  Found existing installation: Django 2.0.9
    Not uninstalling django at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'Django'. No files were found to uninstall.
  Found existing installation: draftjs-exporter 2.0.0
    Not uninstalling draftjs-exporter at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'draftjs-exporter'. No files were found to uninstall.
  Found existing installation: wagtail 2.3
    Not uninstalling wagtail at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'wagtail'. No files were found to uninstall.
  Found existing installation: Sphinx 1.7.5
    Not uninstalling sphinx at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'Sphinx'. No files were found to uninstall.
  Found existing installation: entrypoints 0.2.3
    Not uninstalling entrypoints at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'entrypoints'. No files were found to uninstall.
  Found existing installation: pluggy 0.12.0
    Not uninstalling pluggy at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'pluggy'. No files were found to uninstall.
  Found existing installation: pytest 4.6.3
    Not uninstalling pytest at /usr/local/lib/python3.6/site-packages, outside environment /Users/technical/code/pb/wagtail-personalisation/.venv/bin/..
    Can't uninstall 'pytest'. No files were found to uninstall.
  Running setup.py develop for wagtail-personalisation
Successfully installed Django-2.1.11 Faker-2.0.1 Pillow-5.4.1 attrs-19.1.0 draftjs-exporter-2.1.6 entrypoints-0.3 factory-boy-2.8.1 flake8-3.7.8 flake8-blind-except-0.1.1 flake8-debugger-3.1.0 flake8-imports-0.1.1 freezegun-0.3.8 isort-4.3.21 mccabe-0.6.1 pluggy-0.6.0 pycodestyle-2.5.0 pycountry-19.8.18 pyflakes-2.1.1 pytest-3.4.2 pytest-cov-2.5.1 pytest-django-3.1.2 pytest-mock-1.6.3 pytest-pythonpath-0.7.2 pytest-sugar-0.9.1 sphinx-2.2.0 sphinx-rtd-theme-0.4.3 sphinxcontrib-applehelp-1.0.1 sphinxcontrib-devhelp-1.0.1 sphinxcontrib-htmlhelp-1.0.2 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.2 sphinxcontrib-serializinghtml-1.1.3 termcolor-1.1.0 text-unidecode-1.2 wagtail-2.4 wagtail-factories-1.1.0 wagtail-personalisation
sandbox/manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, home, sessions, sites, taggit, user, wagtail_personalisation, wagtailadmin, wagtailcore, wagtaildocs, wagtailembeds, wagtailforms, wagtailimages, wagtailredirects, wagtailsearch, wagtailusers
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0001_initial... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying user.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying wagtailcore.0001_squashed_0016_change_page_url_path_to_text_field... OK
  Applying wagtailcore.0017_change_edit_page_permission_description... OK
  Applying wagtailcore.0018_pagerevision_submitted_for_moderation_index... OK
  Applying wagtailcore.0019_verbose_names_cleanup... OK
  Applying wagtailcore.0020_add_index_on_page_first_published_at... OK
  Applying wagtailcore.0021_capitalizeverbose... OK
  Applying wagtailcore.0022_add_site_name... OK
  Applying wagtailcore.0023_alter_page_revision_on_delete_behaviour... OK
  Applying wagtailcore.0024_collection... OK
  Applying wagtailcore.0025_collection_initial_data... OK
  Applying wagtailcore.0026_group_collection_permission... OK
  Applying wagtailcore.0027_fix_collection_path_collation... OK
  Applying wagtailcore.0024_alter_page_content_type_on_delete_behaviour... OK
  Applying wagtailcore.0028_merge... OK
  Applying wagtailcore.0029_unicode_slugfield_dj19... OK
  Applying wagtailcore.0030_index_on_pagerevision_created_at... OK
  Applying wagtailcore.0031_add_page_view_restriction_types... OK
  Applying wagtailcore.0032_add_bulk_delete_page_permission... OK
  Applying wagtailcore.0033_remove_golive_expiry_help_text... OK
  Applying wagtail_personalisation.0001_initial... OK
  Applying wagtail_personalisation.0002_auto_20161205_1623... OK
  Applying wagtail_personalisation.0003_auto_20161206_1005... OK
  Applying wagtail_personalisation.0004_segment_persistent... OK
  Applying wagtail_personalisation.0005_userisloggedinrule... OK
  Applying wagtail_personalisation.0006_segment_match_any... OK
  Applying wagtail_personalisation.0007_dayrule... OK
  Applying wagtail_personalisation.0008_devicerule... OK
  Applying wagtail_personalisation.0009_auto_20170531_0428... OK
  Applying wagtail_personalisation.0010_auto_20170531_1101... OK
  Applying wagtail_personalisation.0011_personalisablepagemetadata... OK
  Applying home.0001_initial... OK
  Applying home.0002_create_homepage... OK
  Applying home.0003_homepage_text_content... OK
  Applying sessions.0001_initial... OK
  Applying sites.0001_initial... OK
  Applying sites.0002_alter_domain_unique... OK
  Applying taggit.0001_initial... OK
  Applying taggit.0002_auto_20150616_2121... OK
  Applying user.0002_auto_20190315_1254... OK
  Applying wagtail_personalisation.0012_remove_personalisablepagemetadata_is_segmented... OK
  Applying wagtail_personalisation.0013_add_dynamic_static_to_segment... OK
  Applying wagtail_personalisation.0015_static_users... OK
  Applying wagtail_personalisation.0016_auto_20180125_0918... OK
  Applying wagtail_personalisation.0017_segment_randomisation_percent... OK
  Applying wagtail_personalisation.0018_segment_excluded_users... OK
  Applying wagtail_personalisation.0019_auto_20180526_1425... OK
  Applying wagtail_personalisation.0020_rules_delete_relatedqueryname... OK
  Applying wagtail_personalisation.0021_personalisablepagemetadata_segment_set_on_delete_protect... OK
  Applying wagtail_personalisation.0022_personalisablepagemetadata_canonical_protect... OK
  Applying wagtail_personalisation.0023_personalisablepagemetadata_variant_cascade... OK
  Applying wagtail_personalisation.0024_origincountryrule... OK
  Applying wagtail_personalisation.0025_auto_20190822_0627... OK
  Applying wagtailadmin.0001_create_admin_access_permissions... OK
  Applying wagtailcore.0034_page_live_revision... OK
  Applying wagtailcore.0035_page_last_published_at... OK
  Applying wagtailcore.0036_populate_page_last_published_at... OK
  Applying wagtailcore.0037_set_page_owner_editable... OK
  Applying wagtailcore.0038_make_first_published_at_editable... OK
  Applying wagtailcore.0039_collectionviewrestriction... OK
  Applying wagtailcore.0040_page_draft_title... OK
  Applying wagtaildocs.0001_initial... OK
  Applying wagtaildocs.0002_initial_data... OK
  Applying wagtaildocs.0003_add_verbose_names... OK
  Applying wagtaildocs.0004_capitalizeverbose... OK
  Applying wagtaildocs.0005_document_collection... OK
  Applying wagtaildocs.0006_copy_document_permissions_to_collections... OK
  Applying wagtaildocs.0005_alter_uploaded_by_user_on_delete_action... OK
  Applying wagtaildocs.0007_merge... OK
  Applying wagtaildocs.0008_document_file_size... OK
  Applying wagtailembeds.0001_initial... OK
  Applying wagtailembeds.0002_add_verbose_names... OK
  Applying wagtailembeds.0003_capitalizeverbose... OK
  Applying wagtailforms.0001_initial... OK
  Applying wagtailforms.0002_add_verbose_names... OK
  Applying wagtailforms.0003_capitalizeverbose... OK
  Applying wagtailimages.0001_initial... OK
  Applying wagtailimages.0002_initial_data... OK
  Applying wagtailimages.0003_fix_focal_point_fields... OK
  Applying wagtailimages.0004_make_focal_point_key_not_nullable... OK
  Applying wagtailimages.0005_make_filter_spec_unique... OK
  Applying wagtailimages.0006_add_verbose_names... OK
  Applying wagtailimages.0007_image_file_size... OK
  Applying wagtailimages.0008_image_created_at_index... OK
  Applying wagtailimages.0009_capitalizeverbose... OK
  Applying wagtailimages.0010_change_on_delete_behaviour... OK
  Applying wagtailimages.0011_image_collection... OK
  Applying wagtailimages.0012_copy_image_permissions_to_collections... OK
  Applying wagtailimages.0013_make_rendition_upload_callable... OK
  Applying wagtailimages.0014_add_filter_spec_field... OK
  Applying wagtailimages.0015_fill_filter_spec_field... OK
  Applying wagtailimages.0016_deprecate_rendition_filter_relation... OK
  Applying wagtailimages.0017_reduce_focal_point_key_max_length... OK
  Applying wagtailimages.0018_remove_rendition_filter... OK
  Applying wagtailimages.0019_delete_filter... OK
  Applying wagtailimages.0020_add-verbose-name... OK
  Applying wagtailimages.0021_image_file_hash... OK
  Applying wagtailredirects.0001_initial... OK
  Applying wagtailredirects.0002_add_verbose_names... OK
  Applying wagtailredirects.0003_make_site_field_editable... OK
  Applying wagtailredirects.0004_set_unique_on_path_and_site... OK
  Applying wagtailredirects.0005_capitalizeverbose... OK
  Applying wagtailredirects.0006_redirect_increase_max_length... OK
  Applying wagtailsearch.0001_initial... OK
  Applying wagtailsearch.0002_add_verbose_names... OK
  Applying wagtailsearch.0003_remove_editors_pick... OK
  Applying wagtailusers.0001_initial... OK
  Applying wagtailusers.0002_add_verbose_name_on_userprofile... OK
  Applying wagtailusers.0003_add_verbose_names... OK
  Applying wagtailusers.0004_capitalizeverbose... OK
  Applying wagtailusers.0005_make_related_name_wagtail_specific... OK
  Applying wagtailusers.0006_userprofile_prefered_language... OK
  Applying wagtailusers.0007_userprofile_current_time_zone... OK
  Applying wagtailusers.0008_userprofile_avatar... OK
sandbox/manage.py loaddata sandbox/exampledata/users.json
Installed 1 object(s) from 1 fixture(s)
sandbox/manage.py loaddata sandbox/exampledata/personalisation.json
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 303, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: main.wagtailcore_page__old

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "sandbox/manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
    self.loaddata(fixture_labels)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 113, in loaddata
    self.load_label(fixture_label)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/loaddata.py", line 177, in load_label
    obj.save(using=self.using)
  File "/usr/local/lib/python3.6/site-packages/django/core/serializers/base.py", line 205, in save
    models.Model.save_base(self.object, using=using, raw=True, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 759, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 823, in _save_table
    forced_update)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 872, in _do_update
    return filtered._update(values) > 0
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 712, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1379, in execute_sql
    cursor = super().execute_sql(result_type)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1068, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 100, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 68, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 303, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: Problem installing fixture '/Users/technical/code/pb/wagtail-personalisation/sandbox/exampledata/personalisation.json': Could not load wagtail_personalisation.VisitCountRule(pk=1): no such table: main.wagtailcore_page__old
make: *** [sandbox] Error 1
mattlinares commented 5 years ago

Just to be clear that django is using the latest version of sqlite:

(wagtail-personalisation) ➜  sandbox git:(master) βœ— python manage.py dbshell
SQLite version 3.29.0 2019-07-10 17:32:03
Enter ".help" for usage hints.
sqlite>
mattlinares commented 5 years ago

@jberghoef Any other ideas on this? :)

jberghoef commented 5 years ago

Hi @mattlinares ,

This seems to be a similar problem as described here: https://github.com/wagtail/wagtail/issues/4941 . One solution mentioned is not to upgrade, but downgrade SQLite. I guess that's worth a try.

https://github.com/djaodjin/djaoapp/issues/72#issuecomment-513689146

If you don't mind changing up the code a little bit you could consider changing the database to Postgres.