Untitled

mail@pastecode.io avatar
unknown
python
3 years ago
6.2 kB
2
Indexable
Never
==> Loading fixture 'initial_retailer_types' of app 'retailer' into database 'retailer'
Traceback (most recent call last):
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "retailer_retailertype" does not exist
LINE 1: UPDATE "retailer_retailertype" SET "type_name" = 'Closed Env...
               ^


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

Traceback (most recent call last):
  File "/Users/maksimposohov/yoyowallet/platform/venv/bin/yoyo", line 33, in <module>
    sys.exit(load_entry_point('platform', 'console_scripts', 'yoyo')())
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/maksimposohov/yoyowallet/platform/yoyo/cli/decorators.py", line 101, in wrapper
    return f(*args, **kwargs)
  File "/Users/maksimposohov/yoyowallet/platform/yoyo/cli/commands/upgrade.py", line 55, in upgrade
    verbosity=verbosity,
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/core/management/__init__.py", line 148, in call_command
    return command.execute(*args, **defaults)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/modeltranslation/management/commands/loaddata.py", line 61, in handle
    return super(Command, self).handle(*fixture_labels, **options)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 72, in handle
    self.loaddata(fixture_labels)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 114, in loaddata
    self.load_label(fixture_label)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", line 181, in load_label
    obj.save(using=self.using)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/core/serializers/base.py", line 223, in save
    models.Model.save_base(self.object, using=using, raw=True, **kwargs)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/models/base.py", line 782, in save_base
    force_update, using, update_fields,
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/models/base.py", line 854, in _save_table
    forced_update)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/models/base.py", line 903, in _do_update
    return filtered._update(values) > 0
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/models/query.py", line 760, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1471, in execute_sql
    cursor = super().execute_sql(result_type)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql
    cursor.execute(sql, params)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 99, in execute
    return super().execute(sql, params)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django_statsd/patches/utils.py", line 12, in wrapper
    return patch_function(original_function, *args, **kw)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django_statsd/patches/db.py", line 20, in patched_execute
    return orig_execute(self, query, *args, **kwargs)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/sentry_sdk/integrations/django/__init__.py", line 489, in execute
    return real_execute(self, sql, params)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/Users/maksimposohov/yoyowallet/platform/venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: Problem installing fixture '/Users/maksimposohov/yoyowallet/platform/yoyo/apps/retailer/fixtures/initial_retailer_types.json': Could not load retailer.RetailerType(pk=1): relation "retailer_retailertype" does not exist
LINE 1: UPDATE "retailer_retailertype" SET "type_name" = 'Closed Env...