Skip to content

format presubmit fails to execute #156993

@gaaclarke

Description

@gaaclarke

There is something unique about my setup that makes this happen for me and not for others.

reproduction

I have no local changes for /Users/aaclarke/dev/engine/src/flutter/tools/gn

$ git push --set-upstream origin fix-bdf-fast-path
The clang-tidy check is disabled. To enable set the environment variable PRE_PUSH_CLANG_TIDY to any value.
Starting formatting checks.
Check "Formatting check" failed.
command: /Users/aaclarke/dev/engine/src/flutter/ci/format.sh 
working directory: /Users/aaclarke/dev/engine/src/flutter
exit code: 1
stdout:
Checking GN formatting...
Completed checking 0 GN files with no formatting problems.                                          
Checking Java formatting...
No Java files with changes, skipping Java format check.
Checking Python formatting...
To fix, run `et format` or:                                                                                   

git apply <<DONE
  /Users/aaclarke/dev/engine/src/flutter/tools/gn
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/aaclarke/dev/engine/src/flutter/third_party/yapf/yapf/__main__.py", line 16, in <module>
    import yapf
  File "/Users/aaclarke/dev/engine/src/flutter/third_party/yapf/yapf/__init__.py", line 35, in <module>
    from yapf.yapflib import errors
  File "/Users/aaclarke/dev/engine/src/flutter/third_party/yapf/yapf/yapflib/errors.py", line 16, in <module>
    from lib2to3.pgen2 import tokenize
ModuleNotFoundError: No module named 'lib2to3'

DONE

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions