[Question] Issues Running on TravisCI
See original GitHub issuecfn-lint version: (cfn-lint --version
)
Presumably latest from Pypi (invocation-method follows to explain the “presumably”):
- Initial problem:
Using:
install:
- pip install --user cfn-lint
Resulted in numerous warnings related to SSL/TLS handlers and installed version of pip
.
- Next break-point:
Updating to:
install:
- pip install --user --upgrade pip
- pip install --user cfn-lint
However, this resulted in a different job-failure:
$ pip install --user cfn-lint
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip import main
ImportError: cannot import name main
The command "pip install --user cfn-lint" failed and exited with 1 during .
- Functional work-around:
Googled and found a thread that indicated that pip
10+ changed how they handled import main
and a recommendation to pin the pip
upgrade to a version < 10. Ultimately, I modified my .travis.yml
to do:
install:
- pip install --user --upgrade pip==9.0.3
- pip install --user cfn-lint
The above allowed cfn-lint to run.
Description of issue
Need advice for sustainability of current work-around for use with Travis, given the above. While the above works, staying on 9.0.3 is likely sub-optimal. Wanted to know if there was a more-recommended path forward.
Also: might some of this become a non-issue after Travis finishes migrating all projects to Xenial
Additional Information
- Worker information hostname: 7101d4b2-3ebc-4693-95ab-100722bd05d5@1.production-1-worker-com-gce-8ng8 version: v6.1.0 https://github.com/travis-ci/worker/tree/a6071dd64658ecf13ec3190bfb9e9ca3c8f3e10d instance: travis-job-89a61bc2-af5a-4002-a51c-70443a743e7c travis-ci-connie-trusty-1512502258-986baf0 (via amqp)
Forcing use of Xenial as test platform also results in breakage (presumably because the base pip
version is too high):
$ pip install --user cfn-lint
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named _internal
The command "pip install --user cfn-lint" failed and exited with 1 during .
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (8 by maintainers)
@ferricoxide should be released with v0.11.1
I’ll take a look.