I am trying to develop the config flow for the doods integration. However when I try to launch the script script.hassfest
I get the following syntax error.
Traceback (most recent call last):
File "/usr/lib/python3.11/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
^^^^^^^^^^^^^^^^
File "/home/oslo/Software/home-assistant/script/hassfest/dependencies.py", line 242, in _compute_integration_dependencies
collector.collect()
File "/home/oslo/Software/home-assistant/script/hassfest/dependencies.py", line 34, in collect
self.visit(ast.parse(fil.read_text()))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<unknown>", line 19
print groups
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/oslo/Software/home-assistant/script/hassfest/__main__.py", line 244, in <module>
sys.exit(main())
^^^^^^
File "/home/oslo/Software/home-assistant/script/hassfest/__main__.py", line 166, in main
plugin.validate(integrations, config)
File "/home/oslo/Software/home-assistant/script/hassfest/dependencies.py", line 354, in validate
_validate_dependency_imports(integrations)
File "/home/oslo/Software/home-assistant/script/hassfest/dependencies.py", line 254, in _validate_dependency_imports
integration_imports = dict(
^^^^^
File "/usr/lib/python3.11/multiprocessing/pool.py", line 451, in <genexpr>
return (item for chunk in result for item in chunk)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/multiprocessing/pool.py", line 873, in next
raise value
File "<unknown>", line 19
print groups
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
I really can’t understand what is going on, neither how to debug it. Especially because the last file on the stack trace is <unknown>
.
Anyone can point me to the right direction to debug this problem?
Thanks!