I'm trying to install Accountant, when it' time to migrate i get this error:
(accountant) filippo@filippo-Aspire-X3900:~/Scaricati/Accountant$ ./manage.py migrate
System check identified some issues:
WARNINGS:
books.Organization.members: (fields.W340) null has no effect on ManyToManyField.
Operations to perform:
Synchronize unmigrated apps: bootstrap3, accounting, djrill, crispy_forms, stronghold, staticfiles, avatar, messages, libs, django_select2, datetimewidget, debug_toolbar, connect, allauth
Apply all migrations: admin, sessions, people, reports, contenttypes, account, socialaccount, sites, auth, books
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
Applying socialaccount.0002_auto_20150128_2227...Traceback (most recent call last):
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/allauth/socialaccount/fields.py", line 56, in get_prep_value
return json.dumps(value)
File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3.5/json/encoder.py", line 179, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'{}' is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 222, in handle
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/migrations/executor.py", line 110, in migrate
self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/migrations/executor.py", line 148, in apply_migration
state = migration.apply(state, schema_editor)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/migrations/migration.py", line 115, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/migrations/operations/fields.py", line 201, in database_forwards
schema_editor.alter_field(from_model, from_field, to_field)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 484, in alter_field
old_db_params, new_db_params, strict)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/backends/postgresql_psycopg2/schema.py", line 113, in _alter_field
new_db_params, strict,
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 566, in _alter_field
old_default = self.effective_default(old_field)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 211, in effective_default
default = field.get_db_prep_save(default, self.connection)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/models/fields/__init__.py", line 710, in get_db_prep_save
prepared=False)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/django/db/models/fields/__init__.py", line 702, in get_db_prep_value
value = self.get_prep_value(value)
File "/home/filippo/Scaricati/Accountant/accountant/lib/python3.5/site-packages/allauth/socialaccount/fields.py", line 58, in get_prep_value
raise ValidationError(str(e))
django.core.exceptions.ValidationError: ["b'{}' is not JSON serializable"]
I have tryied many versions of django-allauth with the same result.
That's the output from "pip list":
I'm trying to install Accountant, when it' time to migrate i get this error:
I have tryied many versions of django-allauth with the same result. That's the output from "pip list":