[PR #278] Pin setuptools to 68.0.0 to fix Ray 2.7.0 compatibility #269

Open
opened 2025-11-02 00:12:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/GokuMohandas/Made-With-ML/pull/278
Author: @ShakirKhurshid
Created: 10/25/2025
Status: 🔄 Open

Base: mainHead: fix-setuptools-compatibility


📝 Commits (1)

  • 96bdfee Pin setuptools to 68.0.0 to fix Ray 2.7.0 compatibility

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 requirements.txt (+4 -0)

📄 Description

Problem

When following the course setup instructions, ray.data.read_csv(DATASET_LOC) fails with:

ModuleNotFoundError: No module named 'pkg_resources._vendor'

This occurs because Ray 2.7.0 expects older internal APIs from setuptools that were removed in setuptools 70+.

Solution

Pin setuptools to version 68.0.0, which is compatible with Ray 2.7.0 and maintains the expected API structure.

Testing

  • Verified that ray.data.read_csv() works correctly with this pinned version
  • Tested with Python 3.10.11 as specified in course setup

Impact

This fix ensures the course environment works out-of-the-box for new learners without requiring them to debug dependency issues.
Fixes issue #274


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/GokuMohandas/Made-With-ML/pull/278 **Author:** [@ShakirKhurshid](https://github.com/ShakirKhurshid) **Created:** 10/25/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-setuptools-compatibility` --- ### 📝 Commits (1) - [`96bdfee`](https://github.com/GokuMohandas/Made-With-ML/commit/96bdfeef5c071c41739ac7619a5b081cb2bdc9d3) Pin setuptools to 68.0.0 to fix Ray 2.7.0 compatibility ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `requirements.txt` (+4 -0) </details> ### 📄 Description ## Problem When following the course setup instructions, `ray.data.read_csv(DATASET_LOC)` fails with: ``` ModuleNotFoundError: No module named 'pkg_resources._vendor' ``` This occurs because Ray 2.7.0 expects older internal APIs from setuptools that were removed in setuptools 70+. ## Solution Pin setuptools to version 68.0.0, which is compatible with Ray 2.7.0 and maintains the expected API structure. ## Testing - Verified that `ray.data.read_csv()` works correctly with this pinned version - Tested with Python 3.10.11 as specified in course setup ## Impact This fix ensures the course environment works out-of-the-box for new learners without requiring them to debug dependency issues. Fixes issue #274 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 00:12:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/Made-With-ML#269