Escaping Python Dependency Hell: A Hybrid Replay-and-Repair Pipeline for Python Dependency Resolution
Veronica Poweska, Ariana Oyanguren, Jessica Pourleyli, Sourena Khanzadeh, Manar Alalfi
Abstract
Dependency conflicts in Python ecosystems arise from incompatible version constraints, missing packages, and undocumented compatibility relationships, causing many real-world code snippets to fail at execution. This paper presents PLLM+, a hybrid dependency-repair pipeline evaluated on the HG2.9K benchmark of 2,891 dependency-failing snippets. PLLM+ prioritizes inexpensive deterministic steps before invoking LLM-based repair: static AST-based interpreter inference, replay of historically successful dependency configurations from the competition-provided solutions database, and live PyPI validation of candidate package versions. When these steps do not resolve a case, the system falls back to a structured LLM-based repair loop with typed error classification and Proposer/Critic agents. On HG2.9K, PLLM+ solves 1,500 out of 2,891 snippets, compared with 1,169 solved by the PLLM baseline. It also reduces average runtime from 368.7 to 71.8 seconds per snippet. Most successful fixes come from replaying known configurations: 1,495 of the 1,500 successful fixes are produced by the solutions database, while the LLM fallback accounts for 5 additional fixes. These results suggest that, in this benchmark setting, deterministic reuse of previously validated dependency configurations is a simple and effective strategy, with LLM-based repair serving as a secondary fallback for cases not covered by prior solutions.
Create a lesson
Metadata
- Categories
- cs.AI, cs.MA, cs.SE
Related papers
Transport-Safe Evaluation of LLM Agents: Trajectory-Dependent Judge Error and Anytime-Valid Auditing
Shared title terminologycs.AIYulliwas Ameur, Samia Bouzefrane, Soumya Banerjee
Reproducible by Seed? Not on GPUs: Batch-Dependent Non-Determinism in Text-to-Image Models
Shared title terminologycs.AIJavier Conde, Xiuyuan Qi, Shanshan Liu et al.
AI-based detection of worsening heart failure from low-resolution telemonitoring data
Shared title terminologycs.AIErik Aerts, Yinan Yu, Annika Rosengren et al.
ASIRF: An Agentic Framework for Context-Dependent Sensitive Information Redaction
Shared title terminologycs.AISudha Priyadarshini, Mohamed Chahine Ghanem
A Rapid Pipeline for Training and Deploying ML Models on WeBe Band
Shared title terminologycs.AIEhsan Kourkchi, Asmita Asmita, Houman Homayoun et al.
Forecast-Dojo: Replayable Environments for Benchmarking and Training LLM Forecasting Agents
Shared title terminologycs.AILiqin Ye, Haorui Wang, Fardin Ahmed et al.