[Webkit-unassigned] [Bug 230870] Python 3 fails to run run-builtins-generator-tests : ModuleNotFoundError: No module named 'builtins_model'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 28 20:41:11 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=230870

--- Comment #2 from Fujii Hironori <Hironori.Fujii at sony.com> ---
With this WIP patch and Python3, one test reports ParseException.

PASS: WebCore-ArbitraryConditionalGuard-Separate.js-result
Traceback (most recent call last):
  File "JavaScriptCore/Scripts/generate-js-builtins.py", line 178, in <module>
    generate_bindings_for_builtins_files(builtins_files=input_filepaths, **options)
  File "JavaScriptCore/Scripts/generate-js-builtins.py", line 78, in generate_bindings_for_builtins_files
    model.parse_builtins_file(file_name, file_text)
  File "/mnt/c/home/webkit/gc/Source/JavaScriptCore/Scripts/wkbuiltins/builtins_model.py", line 192, in parse_builtins_file
    object_annotations = self._parse_annotations(text)
  File "/mnt/c/home/webkit/gc/Source/JavaScriptCore/Scripts/wkbuiltins/builtins_model.py", line 290, in _parse_annotations
    raise ParseException("Duplicate annotation found: %s" % key)
wkbuiltins.builtins_model.ParseException: Duplicate annotation found: internal

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "JavaScriptCore/Scripts/generate-js-builtins.py", line 181, in <module>
    log.error(e.message)
AttributeError: 'ParseException' object has no attribute 'message'

Traceback (most recent call last):
  File "JavaScriptCore/Scripts/generate-js-builtins.py", line 178, in <module>
    generate_bindings_for_builtins_files(builtins_files=input_filepaths, **options)
  File "JavaScriptCore/Scripts/generate-js-builtins.py", line 78, in generate_bindings_for_builtins_files
    model.parse_builtins_file(file_name, file_text)
  File "/mnt/c/home/webkit/gc/Source/JavaScriptCore/Scripts/wkbuiltins/builtins_model.py", line 192, in parse_builtins_file
    object_annotations = self._parse_annotations(text)
  File "/mnt/c/home/webkit/gc/Source/JavaScriptCore/Scripts/wkbuiltins/builtins_model.py", line 282, in _parse_annotations
    raise ParseException("Duplicate annotation found: %s" % key)
wkbuiltins.builtins_model.ParseException: Duplicate annotation found: conditional

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "JavaScriptCore/Scripts/generate-js-builtins.py", line 181, in <module>
    log.error(e.message)
AttributeError: 'ParseException' object has no attribute 'message'

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210929/f615eee6/attachment.htm>


More information about the webkit-unassigned mailing list