Issue to create the structure of an integration

Hi

I’m trying again to setup a dev environment on my Debian 12 computer following tho official HA dev documentation.
I go the way with VSC although I’m very annoyed by the fact to install Microsoft stuffs to write open source code !
So far I think I have succeeded to setup the dev environment including Docker and so according at ha dev doc I tried to create the scaffold script to create the structure of the integration automatically.
I run the python command in the terminal of the dev instance of HA in VSC. I answer all the questions (it’s an integration basic for command through telnet of some video devices) and then at the end it executes the script that fails with that:

Scaffolding config_flow for the blustreamacm integration...
Writing homeassistant/components/blustreamacm/config_flow.py
Writing homeassistant/components/blustreamacm/const.py
Writing homeassistant/components/blustreamacm/__init__.py
Writing tests/components/blustreamacm/conftest.py
Writing tests/components/blustreamacm/test_config_flow.py
Updating blustreamacm manifest: {'config_flow': True}
Updating blustreamacm strings: ['config']

Running hassfest to pick up new information.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/workspaces/ha-core/script/scaffold/__main__.py", line 117, in <module>
    sys.exit(main())
             ~~~~^^
  File "/workspaces/ha-core/script/scaffold/__main__.py", line 70, in main
    subprocess.run(["python", "-m", "script.hassfest"], **pipe_null, check=True)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/subprocess.py", line 577, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['python', '-m', 'script.hassfest']' returned non-zero exit status 1.
(ha-venv) vscode ➜ /workspaces/ha-core (dev) $

Any ideas what’s wrong there as my basic knowledge of python are lost there :sweat_smile:

Thanks

Vincèn

1 Like

Additional details: I have deleted the directory created by the script ard re-run the script but it’s the same, it crashes and so I have half a scaffold of integration :frowning:

I’m getting the same issue

From what I have found here in forum problem looks to be present since at least a year and never been fixed :frowning:
Not sure if it can be reported as a bug :confused:
In fact a bug issue is already opened but not much interest from HA developers :frowning: script.scaffold broke for fresh installations due to hassfest failure · Issue #128639 · home-assistant/core · GitHub