Traceback (most recent call last):


 "./manage.py", line 12, in <module>

execute_from_command_line(sys.argv)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line

utility.execute()


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/__init__.py", line 355, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv

self.execute(*args, **cmd_options)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 327, in execute

self.check()


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 359, in check

include_deployment_checks=include_deployment_checks,


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 62, in _run_checks

issues.extend(super(Command, self)._run_checks(**kwargs))


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 346, in _run_checks

return checks.run_checks(**kwargs)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/checks/registry.py", line 81, in run_checks

new_errors = check(app_configs=app_configs)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/checks.py", line 65, in get_form_class_check

if not issubclass(edit_handler.get_form_class(cls), WagtailAdminPageForm):


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 318, in get_form_class

widgets=cls.widget_overrides())


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 65, in get_form_for_model

return metaclass(class_name, (form_class,), form_class_attrs)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/forms.py", line 274, in __new__

new_class = super(WagtailAdminModelFormMetaclass, cls).__new__(cls, name, bases, attrs)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/modelcluster/forms.py", line 192, in __new__

new_class = super(ClusterFormMetaclass, cls).__new__(cls, name, bases, attrs)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/forms/models.py", line 252, in __new__

opts.field_classes)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/forms/models.py", line 170, in fields_for_model

formfield = formfield_callback(f, **kwargs)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/forms.py", line 255, in formfield_for_dbfield

return db_field.formfield(**kwargs)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailcore/fields.py", line 19, in formfield

defaults = {'widget': get_rich_text_editor_widget(self.editor)}


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/rich_text.py", line 60, in get_rich_text_editor_widget

return import_string(editor['WIDGET'])()


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtailtinymce/rich_text.py", line 66, in __init__

self.kwargs = self.getDefaultArgs()


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtailtinymce/rich_text.py", line 59, in getDefaultArgs

'language': translation.to_locale(translation.get_language()),


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/utils/translation/__init__.py", line 207, in to_locale

return _trans.to_locale(language)


 "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/utils/translation/trans_real.py", line 68, in to_locale

p = language.find('-')
AttributeError: 'NoneType' object has no attribute 'find'

Traceback (most recent call last):


 "G:\anacondasetup\lib\threading.py", line 916, in _bootstrap_inner

self.run()


 "G:\anacondasetup\lib\threading.py", line 864, in run

self._target(*self._args, **self._kwargs)


 "E:\datasets\srgan\SRGAN-master\tensorlayer\prepro.py", line 87, in apply_fn

results[i] = fn(data, **kwargs)


 "E:\datasets\srgan\SRGAN-master\utils.py", line 17, in crop_sub_imgs_fn

x = crop(x, wrg=384, hrg=384, is_random=is_random)


 "E:\datasets\srgan\SRGAN-master\tensorlayer\prepro.py", line 232, in crop

h, w = x.shape[row_index], x.shape[col_index]
AttributeError: 'NoneType' object has no attribute 'shape'`
