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 <module>
    import bind_gen
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\__init__.py", line 34, in <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    import bind_gen
  File "F:\code\chromium_git\chromium\src\third_party\blink\renderer\bindings\scripts\bind_gen\__init__.py", line 34, in <module>
    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 <module>
    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 <module>
    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

文件夹下各一份即可

 

发布了86 篇原创文章 · 获赞 15 · 访问量 14万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 技术黑板 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览