Skip to content

[BUG] ModuleNotFoundError: No module named 'orjson.orjson' #118

Closed as not planned
@Ulrar

Description

@Ulrar

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

HA 2024.12 fails to start, crashing.

It seeme to be missing a dependency, most likely related to the python 3.13 upgrade. It looks like it's trying to use python 3.12 as well, although that may be hacs related I suppose.
Will revert back to 2024.11 for now.

Expected Behavior

No response

Steps To Reproduce

Use the latest image

Environment

- OS: Talos
- How docker service was installed: Kubernetes

CPU architecture

x86-64

Docker creation

N/A

Container logs

Failed to set capabilities on file '/usr/local/bin/python3.12': No such file or directory
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/local/lib/python3.13/site-packages/homeassistant/__main__.py", line 227, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/local/lib/python3.13/site-packages/homeassistant/__main__.py", line 174, in main
    args = get_arguments()
  File "/usr/local/lib/python3.13/site-packages/homeassistant/__main__.py", line 84, in get_arguments
    from . import config as config_util
  File "/usr/local/lib/python3.13/site-packages/homeassistant/config.py", line 27, in <module>
    from .core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant, callback
  File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 93, in <module>
    from .helpers.json import json_bytes, json_fragment
  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/json.py", line 12, in <module>
    import orjson
  File "/config/deps/orjson/__init__.py", line 3, in <module>
    from .orjson import *
ModuleNotFoundError: No module named 'orjson.orjson'

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions