Cannot migrate data

Hi guys,

I am running command line ./manage.py migrate for credentials service. It worked for awhile (I do not touch anything on codebase or database). However, there was an error message as below
Has anybody resolved this issue?

Mysql version: 5.6.36

Traceback (most recent call last):
File “./manage.py”, line 15, in
execute_from_command_line(sys.argv)
File “/openedx/venv/lib/python3.6/site-packages/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/openedx/venv/lib/python3.6/site-packages/django/core/management/init.py”, line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/openedx/venv/lib/python3.6/site-packages/django/core/management/base.py”, line 283, in run_from_argv
self.execute(*args, **cmd_options)
File “/openedx/venv/lib/python3.6/site-packages/django/core/management/base.py”, line 327, in execute
self.check()
File “/openedx/venv/lib/python3.6/site-packages/django/core/management/base.py”, line 359, in check
include_deployment_checks=include_deployment_checks,
File “/openedx/venv/lib/python3.6/site-packages/django/core/management/commands/migrate.py”, line 61, in _run_checks
issues = run_checks(tags=[Tags.database])
File “/openedx/venv/lib/python3.6/site-packages/django/core/checks/registry.py”, line 81, in run_checks
new_errors = check(app_configs=app_configs)
File “/openedx/venv/lib/python3.6/site-packages/django/core/checks/database.py”, line 10, in check_database_backends
issues.extend(conn.validation.check(**kwargs))
File “/openedx/venv/lib/python3.6/site-packages/django/db/backends/mysql/validation.py”, line 9, in check
issues.extend(self._check_sql_mode(**kwargs))
File “/openedx/venv/lib/python3.6/site-packages/django/db/backends/mysql/validation.py”, line 13, in _check_sql_mode
with self.connection.cursor() as cursor:
File “/openedx/venv/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 254, in cursor
return self._cursor()
File “/openedx/venv/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 229, in _cursor
self.ensure_connection()
File “/openedx/venv/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 213, in ensure_connection
self.connect()
File “/openedx/venv/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 189, in connect
self.connection = self.get_new_connection(conn_params)
File “/openedx/venv/lib/python3.6/site-packages/django/db/backends/mysql/base.py”, line 276, in get_new_connection
conn.encoders[SafeBytes] = conn.encoders[bytes]
KeyError: <class ‘bytes’>

Thanks,
Thin Nguyen

Updates:

The issue is resolved