Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build CI failing due to old pip-tools failing with latest pip #2200

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

imatiach-msft
Copy link
Contributor

Description

fix build CI failing due to old pip-tools failing with latest pip

Currently builds on main are failing with the errors:

File "/opt/hostedtoolcache/Python/3.8.[17](https://github.com/microsoft/responsible-ai-toolbox/actions/runs/5730992430/job/15530945337?pr=2173#step:7:18)/x64/lib/python3.8/site-packages/piptools/sync.py", line 11, in <module>
    from pip._internal.commands.freeze import DEV_PKGS
ImportError: cannot import name 'DEV_PKGS' from 'pip._internal.commands.freeze' (/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/pip/_internal/commands/freeze.py)
Error: Process completed with exit code 1.

According to issues such as:
pypa/pip#12153
The fix is to update to the latest pip-tools. Hence, upgrading pip-tools in this PR to latest version 7.1.0 on pypi to see if it will resolve the build errors. It seems we previously added a bound in the past because those pip-tools releases broke us, but in this case it was a new pip update that seems to have caused the errors.

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@imatiach-msft imatiach-msft force-pushed the ilmat/fix-pip-ci-python-err branch from c235bfc to 412f6f2 Compare August 1, 2023 19:45
@imatiach-msft imatiach-msft force-pushed the ilmat/fix-pip-ci-python-err branch from 412f6f2 to 775739e Compare August 1, 2023 20:09
@imatiach-msft imatiach-msft force-pushed the ilmat/fix-pip-ci-python-err branch 4 times, most recently from 6ad9f24 to f7e42b4 Compare August 1, 2023 20:31
4 similar comments
@imatiach-msft imatiach-msft merged commit 0327bb2 into main Aug 2, 2023
@imatiach-msft imatiach-msft deleted the ilmat/fix-pip-ci-python-err branch August 2, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants