Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6766

Static checks fail on travis with import error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: ci
    • Labels:
      None

      Description

      2.25s$ ./scripts/ci/ci_run_all_static_checks.sh
      [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks.
      [INFO] Initializing environment for https://github.com/thlorenz/doctoc.git.
      [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
      [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks.
      [INFO] Initializing environment for local:yamllint.
      [INFO] Initializing environment for local:isort.
      [INFO] Initializing environment for local.
      [INFO] Initializing environment for local:pyyaml.
      [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks.
      [INFO] Once installed this environment will be reused.
      [INFO] This may take a few minutes...
      An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/python', '-mvirtualenv', '/home/travis/.cache/pre-commit/repoCr7zyZ/py_env-python3', '-p', 'python3')
      return code: 1
      expected return code: 0
      stdout: (none)
      stderr:
      ERROR:root:ImportError: cannot import name ensure_text

      Check the log at /home/travis/.cache/pre-commit/pre-commit.log

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                potiuk Jarek Potiuk
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: