python ./manage.py migrate
Operations to perform:
Apply all migrations: accounts, admin, auth, authtoken, contenttypes, lang, sessions, sites, social_django, trans
Traceback (most recent call last):
File "../manage.py", line 31, in <module>
execute_from_command_line(sys.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 164, in handle
pre_migrate_apps = pre_migrate_state.apps
File "/var/www/venv/local/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 176, in apps
return StateApps(self.real_apps, self.models)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 249, in __init__
raise ValueError("\n".join(error.msg for error in errors))
ValueError: The field accounts.VerifiedEmail.social was declared with a lazy reference to 'social_django.usersocialauth', but app 'social_django' isn't installed.
* Weblate 2.11
* Python 2.7.9
* Django 1.10.5
* six 1.10.0
* social-auth-core 1.1.0
* social-auth-app-django 1.0.1
* Translate Toolkit 2.0.0b5
* Whoosh 2.7.4
* defusedxml 0.4.1
* Git 2.1.4
* Pillow (PIL) 1.1.7
* dateutil 2.5.3
* lxml 3.6.0
* django-crispy-forms 1.6.0
* compressor 1.6
* djangorestframework 3.4.6
* Database backends: django.db.backends.postgresql_psycopg2
Please read upgrading instructions: https://docs.weblate.org/en/latest/admin/upgrade.html#upgrade-from-2-10-to-2-11
I've updated the relevant entries in settings.py before running the migration. A vimdiff of the adjusted settings with the settings from settings_example.py does not yield any differences regarding social.
The migration thinks social_django is not installed, is it listed in your INSTALLED_APPS?
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.sitemaps',
'social_django',
'crispy_forms',
'compressor',
'rest_framework',
'rest_framework.authtoken',
'weblate.trans',
'weblate.lang',
'weblate.accounts',
'weblate.utils',
# Optional: Git exporter
# 'weblate.gitexport',
# Needed for javascript localization
'weblate',
)
Looks correct, are you sure you're editing settings which are used?
Yes
$ pwd
/var/www/html/Weblate-2.11
$ grep 'INSTALLED_APPS' -A 25 /var/www/html/Weblate-2.11/weblate/settings.py
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.sitemaps',
'social_django',
'crispy_forms',
'compressor',
'rest_framework',
'rest_framework.authtoken',
'weblate.trans',
'weblate.lang',
'weblate.accounts',
'weblate.utils',
# Optional: Git exporter
# 'weblate.gitexport',
# Needed for javascript localization
'weblate',
)
$ python /var/www/html/Weblate-2.11/manage.py migrate
Operations to perform:
Apply all migrations: accounts, admin, auth, authtoken, contenttypes, lang, sessions, sites, social_django, trans
Traceback (most recent call last):
File "/var/www/html/Weblate-2.11/manage.py", line 31, in <module>
execute_from_command_line(sys.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 164, in handle
pre_migrate_apps = pre_migrate_state.apps
File "/var/www/venv/local/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 176, in apps
return StateApps(self.real_apps, self.models)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 249, in __init__
raise ValueError("\n".join(error.msg for error in errors))
ValueError: The field accounts.VerifiedEmail.social was declared with a lazy reference to 'social_django.usersocialauth', but app 'social_django' isn't installed.
Hmm, it looks strange - it lists social_django as migrations to perform, but it doesn't see it when resolving model.
Can you try running migrations just for social_django?
python ./manage.py migrate social_django
Also check command could provide some useful hints what is wrong:
python ./manage.py check
Can you try running migrations just for social_django?
$ python ./manage.py migrate social_django
Operations to perform:
Apply all migrations: social_django
Traceback (most recent call last):
File "./manage.py", line 31, in <module>
execute_from_command_line(sys.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 164, in handle
pre_migrate_apps = pre_migrate_state.apps
File "/var/www/venv/local/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 176, in apps
return StateApps(self.real_apps, self.models)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 249, in __init__
raise ValueError("\n".join(error.msg for error in errors))
ValueError: The field accounts.VerifiedEmail.social was declared with a lazy reference to 'social_django.usersocialauth', but app 'social_django' isn't installed.
Also check command could provide some useful hints what is wrong:
$ python ./manage.py check
System check identified no issues (0 silenced).
What is output of following command:
python ./manage.py shell -c 'from django.apps import apps; print apps.get_app_configs()'
$ python ./manage.py shell -c 'from django.apps import apps; print apps.get_app_configs()'
[<AuthConfig: auth>, <ContentTypesConfig: contenttypes>, <SessionsConfig: sessions>, <SitesConfig: sites>, <MessagesConfig: messages>, <StaticFilesConfig: staticfiles>, <AdminConfig: admin>, <AdminDocsConfig: admindocs>, <SiteMapsConfig: sitemaps>, <AppConfig: social_django>, <AppConfig: crispy_forms>, <AppConfig: compressor>, <AppConfig: rest_framework>, <AuthTokenConfig: authtoken>, <TransConfig: trans>, <LangConfig: lang>, <AppConfig: accounts>, <AppConfig: utils>, <AppConfig: weblate>]
i have the same issue. social_django listed in INSTALLED_APPS and cannot run migration.
Strange that I can not reproduce this...
Can somebody of you try following command as well:
python ./manage.py shell -c 'from django.apps import apps; print apps.get_app_config("social_django")'
@nijel just returns: <AppConfig: social_django>. i'm upgrading from 2.10. on Linux
This is exactly code which fails in the migration... I'm was testing migration from 2.10 on Linux and it did work fine.
This seems like https://github.com/python-social-auth/social-app-django/issues/26, however it should be fixed in social-auth-app-django 1.0.1
@nijel I'm using social-auth-app-django 1.0.1 already.
@nijel i'm using:
social-auth-app-django = 1.0.1
social-auth-core = 1.1.0
Yes, it should be there as it's dependency for Weblate :-).
Can you please show me list of applied migrations (./manage.py showmigrations)?
Also it would be great if you can apply following debugging patch on Django and running migrate again? It seems that the initial state of migrations does not see the app for some reason.
I'm really curious what is the problem here as I've been testing this in several virtualenvs and it always worked just fine. There was never such failure on Travis CI as well...
$ python ./manage.py showmigrations
accounts
[X] 0001_squashed_0004_auto_20150108_1424 (4 squashed migrations)
[X] 0005_auto_20150330_1358_squashed_0008_profile_hide_source_secondary (4 squashed migrations)
[X] 0009_auto_20150630_1213_squashed_0011_auto_20150916_0952 (3 squashed migrations)
[X] 0012_auto_20151112_0738_squashed_0015_auto_20160304_1418 (4 squashed migrations)
[X] 0016_add-api-keys
[X] 0017_anonymous_profile
[X] 0018_autogroup_users
[X] 0019_auto_20160520_1358
[X] 0020_remove_projects_dashboard
[X] 0021_auto_20160520_1401
[X] 0022_auto_20160520_1434
[X] 0023_auto_20161021_1502
[X] 0024_auto_20161024_0902
admin
[X] 0001_initial
[X] 0002_logentry_remove_auto_add
auth
[X] 0001_initial
[X] 0002_alter_permission_name_max_length
[X] 0003_alter_user_email_max_length
[X] 0004_alter_user_username_opts
[X] 0005_alter_user_last_login_null
[X] 0006_require_contenttypes_0002
[X] 0007_alter_validators_add_error_messages
[ ] 0008_alter_user_username_max_length
authtoken
[X] 0001_initial
[X] 0002_auto_20160226_1747
contenttypes
[X] 0001_initial
[X] 0002_remove_content_type_name
lang
[X] 0001_initial
[X] 0002_auto_20150630_1208
[X] 0003_auto_20160721_0849
[ ] 0004_auto_20161222_1459
sessions
[X] 0001_initial
sites
[X] 0001_initial
[X] 0002_alter_domain_unique
social_django
[ ] 0005_auto_20160727_2333 (1 squashed migrations)
[ ] 0006_partial
trans
[X] 0001_squashed_0013_auto_20141124_1036 (13 squashed migrations)
[X] 0014_auto_20141202_1101
[X] 0015_auto_20141203_1345_squashed_0018_auto_20150213_1447 (4 squashed migrations)
[X] 0019_auto_20150220_1354_squashed_0032_subproject_agreement (14 squashed migrations)
[X] 0033_auto_20150618_1138_squashed_0045_auto_20150916_1007 (13 squashed migrations)
[X] 0046_auto_20151111_1456_squashed_0060_auto_20160310_0950 (15 squashed migrations)
[X] 0061_auto_20160404_1841
[X] 0062_auto_20160419_1429
[X] 0063_whiteboardmessage_category
[X] 0064_auto_20160428_1813
[X] 0065_auto_20160722_0923
[X] 0066_auto_20160816_1031
[X] 0067_auto_20161024_0922
[X] 0068_auto_20161025_1632
[X] 0069_source_screenshot
[X] 0070_auto_20161103_1412
[ ] 0071_auto_20170124_1345
utils
(no migrations)
Okay, it seems to be migrations problem as described in https://github.com/python-social-auth/social-app-django/issues/16#issuecomment-276230712
Did your Weblate 2.10 installation have pyhon-social-auth 0.2.19 or older?
I applied the patch. Here's the result migration result:
GET auth OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET auth OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET auth OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET contenttypes OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET sessions OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET sites OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET messages OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET staticfiles OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET admin OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET admindocs OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET sitemaps OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET social_django OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET crispy_forms OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET compressor OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET rest_framework OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET authtoken OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET trans OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET lang OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET accounts OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET utils OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET weblate OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
Operations to perform:
Apply all migrations: accounts, admin, auth, authtoken, contenttypes, lang, sessions, sites, social_django, trans
GET staticfiles OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET admindocs OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET messages OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET sitemaps OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET compressor OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET weblate OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET rest_framework OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET crispy_forms OrderedDict([('auth', <AuthConfig: auth>), ('contenttypes', <ContentTypesConfig: contenttypes>), ('sessions', <SessionsConfig: sessions>), ('sites', <SitesConfig: sites>), ('messages', <MessagesConfig: messages>), ('staticfiles', <StaticFilesConfig: staticfiles>), ('admin', <AdminConfig: admin>), ('admindocs', <AdminDocsConfig: admindocs>), ('sitemaps', <SiteMapsConfig: sitemaps>), (u'social_django', <AppConfig: social_django>), (u'crispy_forms', <AppConfig: crispy_forms>), (u'compressor', <AppConfig: compressor>), (u'rest_framework', <AppConfig: rest_framework>), ('authtoken', <AuthTokenConfig: authtoken>), ('trans', <TransConfig: trans>), ('lang', <LangConfig: lang>), (u'accounts', <AppConfig: accounts>), (u'utils', <AppConfig: utils>), (u'weblate', <AppConfig: weblate>)])
GET social_django OrderedDict([(u'accounts', <AppConfigStub: accounts>), ('admin', <AppConfigStub: admin>), ('admindocs', <AppConfigStub: admindocs>), ('auth', <AppConfigStub: auth>), ('authtoken', <AppConfigStub: authtoken>), (u'compressor', <AppConfigStub: compressor>), ('contenttypes', <AppConfigStub: contenttypes>), (u'crispy_forms', <AppConfigStub: crispy_forms>), ('lang', <AppConfigStub: lang>), ('messages', <AppConfigStub: messages>), (u'rest_framework', <AppConfigStub: rest_framework>), ('sessions', <AppConfigStub: sessions>), ('sitemaps', <AppConfigStub: sitemaps>), ('sites', <AppConfigStub: sites>), ('staticfiles', <AppConfigStub: staticfiles>), ('trans', <AppConfigStub: trans>), (u'weblate', <AppConfigStub: weblate>)])
ERROR No installed app with label 'social_django'.
Traceback (most recent call last):
File "manage.py", line 31, in <module>
execute_from_command_line(sys.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/var/www/venv/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 164, in handle
pre_migrate_apps = pre_migrate_state.apps
File "/var/www/venv/local/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 176, in apps
return StateApps(self.real_apps, self.models)
File "/var/www/venv/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 249, in __init__
raise ValueError("\n".join(error.msg for error in errors))
ValueError: The field accounts.VerifiedEmail.social was declared with a lazy reference to 'social_django.usersocialauth', but app 'social_django' isn't installed.
Did your Weblate 2.10 installation have pyhon-social-auth 0.2.19 or older?
$ pip freeze | grep "python-social-auth"
python-social-auth==0.2.19
would it be an option to first migrate on 2.10 to new social-auth?
Great, now I can reproduce it :-). The bug happens when updating from 0.2.19, but not when upgrading from 0.2.21.
Workaround that should work for you: First upgrade Weblate 2.10 to python-social-auth 0.2.21 (rather skip 0.2.20 as it had it's own problems), then the migration to Weblate 2.11 should work just fine.
I'll look into proper fix meanwhile as I can now play with that locally:
Operations to perform:
Apply all migrations: accounts, admin, auth, authtoken, billing, contenttypes, gitexport, lang, sessions, sites, social_django, trans
Traceback (most recent call last):
File "../bin/weblate", line 11, in <module>
sys.exit(main())
File "/tmp/ve/local/lib/python2.7/site-packages/weblate/runner.py", line 33, in main
execute_from_command_line(argv)
File "/tmp/ve/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/tmp/ve/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/tmp/ve/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/tmp/ve/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/tmp/ve/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 164, in handle
pre_migrate_apps = pre_migrate_state.apps
File "/tmp/ve/local/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/tmp/ve/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 176, in apps
return StateApps(self.real_apps, self.models)
File "/tmp/ve/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 249, in __init__
raise ValueError("\n".join(error.msg for error in errors))
ValueError: The field accounts.VerifiedEmail.social was declared with a lazy reference to 'social_django.usersocialauth', but app 'social_django' isn't installed.
I've reported issue on social auth: https://github.com/python-social-auth/social-app-django/issues/28
Workaround that should work for you: First upgrade Weblate 2.10 to python-social-auth 0.2.21 (rather skip 0.2.20 as it had it's own problems), then the migration to Weblate 2.11 should work just fine.
Confirmed, works as you described it. Thx a lot!
I've added hint to documentation to cover this: https://docs.weblate.org/en/latest/admin/upgrade.html#upgrade-from-2-10-to-2-11
I can confirm first upgrading to python-social-auth==0.2.21 solves the issue.
Great, I'll close this as there is nothing what could be fixed in Weblate.
There is another issue affecting this upgrade: stale python social auth migrations remain in site-packages and need to be cleaned up… https://github.com/python-social-auth/social-app-django/issues/28#issuecomment-286795459
Indeed the social auth app renames caused quite a lot of problems on upgrading...
I'm getting this error on a fresh, untouched debian 8 machine no matter what installation method I'm using (virtualenv, system-wide pip, Git). I'm trying to do a FRESH install, no upgrade, but can't overcome the error:
ValueError: The field accounts.VerifiedEmail.social was declared with a lazy reference to 'social_django.usersocialauth', but app 'social_django' isn't installed.
Since I'm not upgrading, I'm not sure how to proceed as I don't have local artifacts of older versions/migrations/libs on the system.
Update: same issue on a fresh Ubuntu 16.04 following the "virtualenv" installation path.
@WanTanFao Maybe it's better open separate issue then...
Few things to check:
./manage.py showmigrations if that lists social_django migrations."All good". I managed to get it working by again dumping everything and starting from scratch, so ignore this. Maybe at some point a less fragmented documentation would be helpful as currently most of the steps are mixed up or not in "chronological"/"logical" order in the docs so it's easy to miss something relevant. Thanks for the help and the great tool!
oh my god, i'm tryna look for a solution to this, and you guys keep babbling on and getting to nothing. just solve the damn problem because I'm having trouble with this too.
@snapchatdotcom not a very productive way to ask for help from a free project…
@WanTanFao Indeed documentation could use some reorganizing as over time some parts of it grew too much and are hard to follow. Contributions are always welcome ;-).
I ran into this as well. I'm trying to upgrade from 2.6 to 2.15, using python-social-auth 0.3.6, but get the same error. I seem to be completely stuck with that upgrade :(
@wichert Does the solution described in https://github.com/WeblateOrg/weblate/issues/1344#issuecomment-276681536 work for you? It's also covered by our docs: https://docs.weblate.org/en/latest/admin/upgrade.html#upgrade-from-2-10-to-2-11
@nijel It didn't - I got a whole bunch of other migration errors when doing that. For example:
Operations to perform:
Apply all migrations: authtoken, lang, sessions, admin, sites, auth, social_auth, contenttypes, accounts, trans
Running migrations:
Rendering model states...Traceback (most recent call last):
File "bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/app/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/app/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/app/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/app/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 200, in handle
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
File "/app/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 92, in migrate
self._migrate_all_forwards(plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/app/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 118, in _migrate_all_forwards
state.apps # Render all -- performance critical
File "/app/local/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/app/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 162, in apps
return StateApps(self.real_apps, self.models)
File "/app/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 235, in __init__
raise ValueError(self._pending_models_error(pending_models))
ValueError: Unhandled pending operations for models:
default.usersocialauth (referred to by fields: accounts.VerifiedEmail.social)
That seems you're using older Weblate which needs old python-social-auth. You should first upgrade to Weblate 2.10 with python-social-auth 0.2.21 and then continue in upgrading.
I know this is painful, but these are bad decisions done by python-social-auth developers in past and all I can do is document these corner cases (I've just added tis remark in 0e3875e8f7d836597935f0d6f72418497f9b0eba).
Maybe the warning in documentation should be on top of the chapter, not at the bottom, after _Follow generic upgrade instructions, there is no special change._
I just fucked up, and start the migrations from 2.6 all over again. :(
I've hopefully made it clearer in 499ebb08a
Ran into this issue as well trying to transfer data from a VM running Weblate 2.5 to one running 2.17.1.
Is there some way to simply skip the broken migration? I'm not using the social authentication option anyways.
The social authentication module is used for email verification or password reset as well.
Anyway upgrading from older version should be:
Most helpful comment
I've added hint to documentation to cover this: https://docs.weblate.org/en/latest/admin/upgrade.html#upgrade-from-2-10-to-2-11