Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[v1.x] six/astroid dependency conflict broke lint #19603

Closed
kpuatamazon opened this issue Nov 30, 2020 · 2 comments
Closed

[v1.x] six/astroid dependency conflict broke lint #19603

kpuatamazon opened this issue Nov 30, 2020 · 2 comments

Comments

@kpuatamazon
Copy link
Contributor

Description

lint is broken for v1.x due to a dependency conflict between six and astroid.

Example log: https://jenkins.mxnet-ci.amazon-ml.com/blue/rest/organizations/jenkins/pipelines/mxnet-validation/pipelines/sanity/branches/PR-19601/runs/2/nodes/39/steps/80/log/?start=0

Relevant snippet:

[2020-11-30T18:22:14.767Z] �[91m+ pip3 install -r /work/requirements
[2020-11-30T18:22:14.767Z] �[0m�[91mDEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
[2020-11-30T18:22:17.272Z] �[0mCollecting astroid==2.3.3
[2020-11-30T18:22:17.525Z]   Downloading astroid-2.3.3-py3-none-any.whl (205 kB)
[2020-11-30T18:22:17.525Z] 
[2020-11-30T18:22:17.525Z] The conflict is caused by:
[2020-11-30T18:22:17.525Z]     The user requested six==1.11.0
[2020-11-30T18:22:17.525Z]     astroid 2.3.3 depends on six~=1.12
[2020-11-30T18:22:17.525Z] 
[2020-11-30T18:22:17.525Z] To fix this you could try to:
[2020-11-30T18:22:17.525Z] 1. loosen the range of package versions you've specified
[2020-11-30T18:22:17.525Z] 2. remove package versions to allow pip attempt to solve the dependency conflict
[2020-11-30T18:22:17.525Z] 
[2020-11-30T18:22:17.525Z] �[91mERROR: Cannot install -r /work/requirements (line 31) and six==1.11.0 because these package versions have conflicting dependencies.
[2020-11-30T18:22:17.525Z] ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
[2020-11-30T18:22:18.083Z] �[0mThe command '/bin/sh -c /work/ubuntu_python.sh' returned a non-zero code: 1
[2020-11-30T18:22:18.083Z] Traceback (most recent call last):
[2020-11-30T18:22:18.083Z]   File "ci/build.py", line 456, in <module>
[2020-11-30T18:22:18.083Z]     sys.exit(main())
[2020-11-30T18:22:18.083Z]   File "ci/build.py", line 366, in main
[2020-11-30T18:22:18.083Z]     cache_intermediate=args.cache_intermediate)
[2020-11-30T18:22:18.083Z]   File "ci/build.py", line 114, in build_docker
[2020-11-30T18:22:18.083Z]     run_cmd()
[2020-11-30T18:22:18.083Z]   File "/home/jenkins_slave/workspace/sanity-lint/ci/util.py", line 84, in f_retry
[2020-11-30T18:22:18.083Z]     return f(*args, **kwargs)
[2020-11-30T18:22:18.083Z]   File "ci/build.py", line 112, in run_cmd
[2020-11-30T18:22:18.083Z]     check_call(cmd)
[2020-11-30T18:22:18.083Z]   File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
[2020-11-30T18:22:18.083Z]     raise CalledProcessError(retcode, cmd)
[2020-11-30T18:22:18.083Z] subprocess.CalledProcessError: Command '['docker', 'build', '-f', 'docker/Dockerfile.build.ubuntu_cpu', '--build-arg', 'USER_ID=1001', '--build-arg', 'GROUP_ID=1001', '--cache-from', 'mxnetci/build.ubuntu_cpu', '-t', 'mxnetci/build.ubuntu_cpu', 'docker']' returned non-zero exit status 1.
script returned exit code 1

This is causing sanity to fail for #19601 (v1.x) but pass for #19602 (master)

cc @szha

@leezu
Copy link
Contributor

leezu commented Nov 30, 2020

@kpuatamazon this also affects the master branch (but is not obvious thanks to docker cache). A simple fix is updating the six dependency specification to be in line with astroid

@kpuatamazon
Copy link
Contributor Author

The sanity CI has passed. Thanks @rondogency!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants