[
https://issues.apache.org/jira/browse/AIRFLOW-6766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17033558#comment-17033558
]
ASF subversion and git services commented on AIRFLOW-6766:
----------------------------------------------------------
Commit 319714f07c470bca999b2f6becbb340c81e79e29 in airflow's branch
refs/heads/master from Jarek Potiuk
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=319714f ]
[AIRFLOW-6766] Fix "cannot import ensure_text" error for pre-commit (#7393)
* [AIRFLOW-6766] Fix "cannot import ensure_text" error for pre-commit
As of today Travis bundles six version 1.11.0 with their python
3.6 image and it misses ensure_text method. Bumping to 1.14+
solves the problem.
> Static checks fail on travis with import error
> ----------------------------------------------
>
> Key: AIRFLOW-6766
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6766
> Project: Apache Airflow
> Issue Type: Bug
> Components: ci
> Affects Versions: 2.0.0
> Reporter: Jarek Potiuk
> Priority: Major
> Fix For: 2.0.0
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)