Skip to content

[dev] Frontend github codespace - cannot start core in devcontainer #30197

@ildar170975

Description

@ildar170975

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

Hope I can post it here.

VSCode, github codespace (just created it) - cannot successfully use "Run HA Core in devocontainer".
The last error in the task output:

2026-03-18 07:26:15.679 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
  File "/home/vscode/.local/bin/hass", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/vscode/src/homeassistant/homeassistant/__main__.py", line 215, in main
    exit_code = runner.run(runtime_conf)
  File "/home/vscode/src/homeassistant/homeassistant/runner.py", line 289, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/home/vscode/src/homeassistant/homeassistant/runner.py", line 256, in setup_and_run_hass
    hass = await bootstrap.async_setup_hass(runtime_config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/src/homeassistant/homeassistant/bootstrap.py", line 355, in async_setup_hass
    await async_from_config_dict(config_dict, hass) is not None
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/src/homeassistant/homeassistant/bootstrap.py", line 517, in async_from_config_dict
    if not await async_load_base_functionality(hass):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/src/homeassistant/homeassistant/bootstrap.py", line 466, in async_load_base_functionality
    await asyncio.gather(
    ...<15 lines>...
    )
  File "/home/vscode/src/homeassistant/homeassistant/helpers/system_info.py", line 64, in async_get_system_info
    hassio = await async_import_module(hass, "homeassistant.components.hassio")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/src/homeassistant/homeassistant/helpers/importlib.py", line 49, in async_import_module
    module = await hass.async_add_import_executor_job(_get_module, cache, name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
    result = ctx.run(self.task)
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
    return fn(*args, **kwargs)
  File "/home/vscode/src/homeassistant/homeassistant/helpers/importlib.py", line 25, in _get_module
    cache[name] = importlib.import_module(name)
                  ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/vscode/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 759, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/home/vscode/src/homeassistant/homeassistant/components/hassio/__init__.py", line 14, in <module>
    from aiohasupervisor import SupervisorError
ModuleNotFoundError: No module named 'aiohasupervisor'

and then lines:

*  The terminal process "/bin/bash '-c', 'script/core'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Describe the behavior you expected

no error

Steps to reproduce the issue

as above

What version of Home Assistant Core has the issue?

2026.4 dev

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

Problem-relevant frontend configuration

JavaScript errors shown in your browser console/inspector

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions