Odd error when running script.hassfest

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!

I found out that the error is related with analysis of the following file homeassistant/components/frontend/www_static/home-assistant-polymer/node_modules/accessibility-developer-tools/scripts/parse_aria_schemas.py

I added the following walk around in /home/oslo/Software/home-assistant/script/hassfest/dependencies.py

try:
  parsed = ast.parse(fil.read_text())
              
  self.visit(parsed)
  self._cur_fil_dir = None
except:
  print('Error parsing file: ' + str(fil))

so the script skips the aforementioned file and then execute the rest correctly. I am not sure whether there is a bug or I did something wrong.

OK mistery solved. home-assistant-polymer seems an old front end package which is deprecated and was there sitting unused.
I removed and now it works without any problem.

I leave this answer for anyone else might run in the same problem.