Cannot upgrade HA Core from 2022.6.6 to 2023.1.4

Hi all,
I cannot upgrade home-assistant core from 2022.6.6 to 2023.1.4 due to the following error:

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'RECORD'
Check the permissions.

Here’s the complete upgrade log:

(homeassistant) homeassistant@GC01hass:/srv/homeassistant $ python3 -m pip install --upgrade homeassistant
WARNING: Ignoring invalid distribution -yping-extensions (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yjwt (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -wesomeversion (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ultidict (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttrs (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpx (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpcore (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -sync-timeout (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -stral (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ryptography (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -rllib3 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -omeassistant (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iso8601 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ip (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iohttp (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -inja2 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -equests (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arl (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arkupsafe (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yping-extensions (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yjwt (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -wesomeversion (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ultidict (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttrs (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpx (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpcore (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -sync-timeout (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -stral (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ryptography (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -rllib3 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -omeassistant (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iso8601 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ip (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iohttp (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -inja2 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -equests (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arl (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arkupsafe (/srv/homeassistant/lib/python3.9/site-packages)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: homeassistant in ./lib/python3.9/site-packages (2022.6.6)
Collecting homeassistant
  Using cached https://www.piwheels.org/simple/homeassistant/homeassistant-2023.1.4-py3-none-any.whl (21.1 MB)
Requirement already satisfied: async-timeout==4.0.2 in ./lib/python3.9/site-packages (from homeassistant) (4.0.2)
Requirement already satisfied: pip<22.4,>=21.0 in ./lib/python3.9/site-packages (from homeassistant) (22.3.1)
Requirement already satisfied: voluptuous-serialize==2.5.0 in ./lib/python3.9/site-packages (from homeassistant) (2.5.0)
Requirement already satisfied: jinja2==3.1.2 in ./lib/python3.9/site-packages (from homeassistant) (3.1.2)
Requirement already satisfied: typing-extensions<5.0,>=4.4.0 in ./lib/python3.9/site-packages (from homeassistant) (4.4.0)
Requirement already satisfied: python-slugify==4.0.1 in ./lib/python3.9/site-packages (from homeassistant) (4.0.1)
Requirement already satisfied: lru-dict==1.1.8 in ./lib/python3.9/site-packages (from homeassistant) (1.1.8)
Collecting attrs==22.1.0
  Using cached https://www.piwheels.org/simple/attrs/attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting orjson==3.8.1
  Using cached orjson-3.8.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (280 kB)
Requirement already satisfied: voluptuous==0.13.1 in ./lib/python3.9/site-packages (from homeassistant) (0.13.1)
Collecting httpx==0.23.2
  Using cached https://www.piwheels.org/simple/httpx/httpx-0.23.2-py3-none-any.whl (86 kB)
Requirement already satisfied: bcrypt==3.1.7 in ./lib/python3.9/site-packages (from homeassistant) (3.1.7)
Requirement already satisfied: astral==2.2 in ./lib/python3.9/site-packages (from homeassistant) (2.2)
Collecting awesomeversion==22.9.0
  Using cached https://www.piwheels.org/simple/awesomeversion/awesomeversion-22.9.0-py3-none-any.whl (12 kB)
Collecting home-assistant-bluetooth==1.9.2
  Using cached https://www.piwheels.org/simple/home-assistant-bluetooth/home_assistant_bluetooth-1.9.2-cp39-cp39-manylinux_2_31_armv7l.whl (280 kB)
Requirement already satisfied: pyyaml==6.0 in ./lib/python3.9/site-packages (from homeassistant) (6.0)
Requirement already satisfied: ifaddr==0.1.7 in ./lib/python3.9/site-packages (from homeassistant) (0.1.7)
Requirement already satisfied: aiohttp==3.8.1 in ./lib/python3.9/site-packages (from homeassistant) (3.8.1)
Collecting cryptography==38.0.3
  Using cached cryptography-38.0.3.tar.gz (599 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting atomicwrites-homeassistant==1.4.1
  Using cached https://www.piwheels.org/simple/atomicwrites-homeassistant/atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Requirement already satisfied: PyJWT==2.5.0 in ./lib/python3.9/site-packages (from homeassistant) (2.5.0)
Requirement already satisfied: requests==2.28.1 in ./lib/python3.9/site-packages (from homeassistant) (2.28.1)
Requirement already satisfied: certifi>=2021.5.30 in ./lib/python3.9/site-packages (from homeassistant) (2021.10.8)
Requirement already satisfied: ciso8601==2.3.0 in ./lib/python3.9/site-packages (from homeassistant) (2.3.0)
Requirement already satisfied: yarl==1.8.1 in ./lib/python3.9/site-packages (from homeassistant) (1.8.1)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.4)
Requirement already satisfied: aiosignal>=1.1.2 in ./lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in ./lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0)
Requirement already satisfied: multidict<7.0,>=4.5 in ./lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2)
Requirement already satisfied: pytz in ./lib/python3.9/site-packages (from astral==2.2->homeassistant) (2020.5)
Requirement already satisfied: cffi>=1.1 in ./lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.14.4)
Requirement already satisfied: six>=1.4.1 in ./lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in ./lib/python3.9/site-packages (from httpx==0.23.2->homeassistant) (1.4.0)
Requirement already satisfied: sniffio in ./lib/python3.9/site-packages (from httpx==0.23.2->homeassistant) (1.2.0)
Requirement already satisfied: httpcore<0.17.0,>=0.15.0 in ./lib/python3.9/site-packages (from httpx==0.23.2->homeassistant) (0.15.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./lib/python3.9/site-packages (from jinja2==3.1.2->homeassistant) (2.0.1)
Requirement already satisfied: text-unidecode>=1.3 in ./lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (1.26.7)
Requirement already satisfied: idna<4,>=2.5 in ./lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (2.10)
Requirement already satisfied: pycparser in ./lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.20)
Requirement already satisfied: h11<0.13,>=0.11 in ./lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx==0.23.2->homeassistant) (0.12.0)
Requirement already satisfied: anyio==3.* in ./lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx==0.23.2->homeassistant) (3.2.1)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (pyproject.toml) ... done
  Created wheel for cryptography: filename=cryptography-38.0.3-cp39-cp39-linux_armv7l.whl size=2743968 sha256=9d79295b0d0e4a2efea91a0743fa0daad4f83e86330243e603a07dfe89487d7b
  Stored in directory: /home/homeassistant/.cache/pip/wheels/e4/a1/02/3831079a3ada1d9228eea10f236572650144f7c8e99f9c6dac
Successfully built cryptography
WARNING: Ignoring invalid distribution -yping-extensions (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yjwt (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -wesomeversion (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ultidict (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttrs (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpx (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpcore (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -sync-timeout (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -stral (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ryptography (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -rllib3 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -omeassistant (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iso8601 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ip (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iohttp (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -inja2 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -equests (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arl (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arkupsafe (/srv/homeassistant/lib/python3.9/site-packages)
Installing collected packages: orjson, home-assistant-bluetooth, awesomeversion, attrs, atomicwrites-homeassistant, cryptography, httpx, homeassistant
  Attempting uninstall: awesomeversion
    WARNING: Ignoring invalid distribution -yping-extensions (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -yjwt (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -wesomeversion (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -ultidict (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -ttrs (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -ttpx (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -ttpcore (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -sync-timeout (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -stral (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -ryptography (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -rllib3 (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -omeassistant (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -iso8601 (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -ip (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -iohttp (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -inja2 (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -equests (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -arl (/srv/homeassistant/lib/python3.9/site-packages)
    WARNING: Ignoring invalid distribution -arkupsafe (/srv/homeassistant/lib/python3.9/site-packages)
    Found existing installation: awesomeversion 22.5.2
    Uninstalling awesomeversion-22.5.2:
      Successfully uninstalled awesomeversion-22.5.2
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'RECORD'
Check the permissions.

WARNING: Ignoring invalid distribution -yping-extensions (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yjwt (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -wesomeversion (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ultidict (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttrs (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpx (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpcore (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -sync-timeout (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -stral (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ryptography (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -rllib3 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -omeassistant (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iso8601 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ip (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iohttp (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -inja2 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -equests (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arl (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arkupsafe (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yping-extensions (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yjwt (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -wesomeversion (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ultidict (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttrs (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpx (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpcore (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -sync-timeout (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -stral (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ryptography (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -rllib3 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -omeassistant (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iso8601 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ip (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iohttp (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -inja2 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -equests (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arl (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arkupsafe (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yping-extensions (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -yjwt (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -wesomeversion (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ultidict (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttrs (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpx (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ttpcore (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -sync-timeout (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -stral (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ryptography (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -rllib3 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -omeassistant (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iso8601 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -ip (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -iohttp (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -inja2 (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -equests (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arl (/srv/homeassistant/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -arkupsafe (/srv/homeassistant/lib/python3.9/site-packages)

what are running it on a PI I’ll say its SDCARD problem

Do you have backups

It is running on an SSD and it has no problems.

I somehow have managed to upgrade, but now home-asssistant won’t start. Here is the log:

2023-01-17 11:57:33.432 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /home/homeassistant/.homeassistant/packages/displ_entrance/hasp_displ_entrance_p1_scenes.yaml contains duplicate key "action". Check lines 70 and 73
2023-01-17 11:57:35.002 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartthinq_sensors which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-17 11:57:35.004 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration shelly which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-17 11:57:35.005 ERROR (SyncWorker_0) [homeassistant.loader] The custom integration 'shelly' does not have a version key in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details
2023-01-17 11:57:35.330 ERROR (SyncWorker_4) [homeassistant.util.json] Could not parse JSON content: /home/homeassistant/.homeassistant/.storage/core.entity_registry
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/util/json.py", line 39, in load_json
    return orjson.loads(fdesc.read())  # type: ignore[no-any-return]
  File "/usr/local/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 201924: invalid start byte