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

Pin setuptools version #1114

Closed
wants to merge 1 commit into from
Closed

Conversation

ebsmothers
Copy link
Contributor

As pointed out in #1111, there is an import error when importing the setuptools packaging API in versions >= 70.0. This is discussed on the setuptools repo here and on other downstream repos as well (see e.g. here). Going with the recommended solution from the second link and just pinning to 69.5.1 to resolve the issue.

Copy link

pytorch-bot bot commented Jun 24, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/1114

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 88fa3b0 with merge base f200da5 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 24, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.74%. Comparing base (f200da5) to head (88fa3b0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1114   +/-   ##
=======================================
  Coverage   26.74%   26.74%           
=======================================
  Files         183      183           
  Lines        8362     8362           
=======================================
  Hits         2236     2236           
  Misses       6126     6126           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joecummings joecummings linked an issue Jun 24, 2024 that may be closed by this pull request
@joecummings
Copy link
Contributor

How did you test this? @ebsmothers

@ebsmothers
Copy link
Contributor Author

@joecummings I didn't yet. Will quickly create a new env to show this fixes the import error

@ebsmothers
Copy link
Contributor Author

Actually the pkg_resources API is no longer used in our repo so we don't need this pin. Closing this PR

@ebsmothers ebsmothers closed this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportError: cannot import name 'packaging' from 'pkg_resources'
5 participants