tirthooo7 opened a new pull request, #21415:
URL: https://github.com/apache/kafka/pull/21415

   
   ### Summary
   
   Fix Python dependency conflict between `requests` and `ducktape` that 
prevents `kafkatest` from being installed.
   
   ### Problem
   
   The `tests/setup.py` pins `requests==2.32.4`, but `ducktape==0.12.0` 
internally requires `requests==2.31.0`. This causes pip to fail with:
   
   ```
   ERROR: Cannot install kafkatest and kafkatest==4.3.0.dev0 because these 
package versions have conflicting dependencies.
   The conflict is caused by:
       kafkatest 4.3.0.dev0 depends on requests==2.32.4
       ducktape 0.12.0 depends on requests==2.31.0
   ```
   
   This was introduced by dependabot PR #19940 which bumped `requests` from 
2.31.0 to 2.32.4 without checking ducktape's transitive dependencies.
   
   ### Solution
   
   Change `requests==2.32.4` to `requests>=2.31.0`. This allows pip to install 
`requests==2.31.0` (what ducktape needs) while still satisfying the version 
constraint.
   
   ### Changes
   
   - `tests/setup.py`: Change strict pin `requests==2.32.4` to flexible 
`requests>=2.31.0`
   
   ### Testing
   
   - Verified `pip install` succeeds without dependency resolution errors
   - System tests can now be set up and run successfully
   
   ### Notes
   
   This is a minimal fix. An alternative would be upgrading to 
`ducktape==0.13.0` which requires `requests==2.32.2`, but that introduces more 
changes and potential risk.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to