chromium 81 编译错误 ImportError: No module named name_style_converter 解决方法

d:/code/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe ../../third_party/blink/renderer/bindings/scripts/generate_bindings.py dictionary --web_idl_database gen/third_party/blink/renderer/bindings/web_idl_database.pickle --output_dir_core gen/third_party/blink/renderer/bindings/core/v8/ --output_dir_modules gen/third_party/blink/renderer/bindings/modules/v8/

Traceback (most recent call last):
  File "../../third_party/blink/renderer/bindings/scripts/generate_bindings.py", line 12, in 
    import bind_gen
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\__init__.py", line 34, in 
    from .dictionary import generate_dictionaries
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\dictionary.py", line 7, in 
    import web_idl
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\..\..\..\..\..\..\third_party\blink\renderer\bindings\scripts\web_idl\__init__.py", line 33, in 
    from .attribute import Attribute
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\..\..\..\..\..\..\third_party\blink\renderer\bindings\scripts\web_idl\attribute.py", line 15, in 
    from .idl_type import IdlType
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\..\..\..\..\..\..\third_party\blink\renderer\bindings\scripts\web_idl\idl_type.py", line 11, in 
    from blinkbuild.name_style_converter import NameStyleConverter
ImportError: No module named name_style_converter

Traceback (most recent call last):
  File "../../third_party/blink/renderer/bindings/scripts/generate_bindings.py", line 12, in 
    import bind_gen
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\__init__.py", line 34, in 
    from .dictionary import generate_dictionaries
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\dictionary.py", line 9, in 
    from . import name_style
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\name_style.py", line 17, in 
    from blinkbuild.name_style_converter import NameStyleConverter
ImportError: No module named name_style_converter

当出现这个错误的时候,将chromium\src\third_party\blink\renderer\build\scripts\下  blinkbuild 这个文件夹复制到

chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen

chromium\src\third_party\blink\renderer\bindings\scripts\web_idl

文件夹下各一份即可

 

你可能感兴趣的:(chromium)