You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't seem to run last constance migration (0033_drop_pickle) since I get the following error:
Operations to perform:
Apply all migrations: constance
Running migrations:
Applying constance.0003_drop_pickle...Traceback (most recent call last):
File ".../vali/backend/manage.py", line 17, in <module>
execute_from_command_line(sys.argv)
File ".../environments/envali12django5/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File ".../environments/envali12django5/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File ".../environments/envali12django5/lib/python3.12/site-packages/django/core/management/base.py", line 416, in run_from_argv
self.execute(*args, **cmd_options)
File ".../environments/envali12django5/lib/python3.12/site-packages/django/core/management/base.py", line 460, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../environments/envali12django5/lib/python3.12/site-packages/django/core/management/base.py", line 107, in wrapper
res = handle_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../environments/envali12django5/lib/python3.12/site-packages/django/core/management/commands/migrate.py", line 353, in handle
post_migrate_state = executor.migrate(
^^^^^^^^^^^^^^^^^
File ".../environments/envali12django5/lib/python3.12/site-packages/django/db/migrations/executor.py", line 135, in migrate
state = self._migrate_all_forwards(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../environments/envali12django5/lib/python3.12/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
state = self.apply_migration(
^^^^^^^^^^^^^^^^^^^^^
File ".../environments/envali12django5/lib/python3.12/site-packages/django/db/migrations/executor.py", line 255, in apply_migration
state = migration.apply(state, schema_editor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../environments/envali12django5/lib/python3.12/site-packages/django/db/migrations/migration.py", line 132, in apply
operation.database_forwards(
File ".../environments/envali12django5/lib/python3.12/site-packages/django/db/migrations/operations/special.py", line 196, in database_forwards
self.code(from_state.apps, schema_editor)
File ".../environments/envali12django5/lib/python3.12/site-packages/constance/migrations/0003_drop_pickle.py", line 35, in migrate_pickled_data
constance.value = dumps(pickle.loads(b64decode(constance.value.encode()))) # noqa: S301
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 1: ordinal not in range(128)
Any ideia how to solve it? or what I'm missing?
We are currently migration from Django 4.2 to 5.2 and updating django constance from 2.9.1 to 4.3.2. Should we do a minor jump for constance before going for 5.2?
Thanks in advance
More info:
Python 3.12
Django==5.2
django-constance==4.3.2
The text was updated successfully, but these errors were encountered:
Can't seem to run last constance migration (0033_drop_pickle) since I get the following error:
Any ideia how to solve it? or what I'm missing?
We are currently migration from Django 4.2 to 5.2 and updating django constance from 2.9.1 to 4.3.2. Should we do a minor jump for constance before going for 5.2?
Thanks in advance
More info:
Python 3.12
Django==5.2
django-constance==4.3.2
The text was updated successfully, but these errors were encountered: