Lune

ASE2023Top-tier venue

Understanding and Remediating Open-Source License Incompatibilities in the PyPI Ecosystem

Weiwei Xu, Hao He, Kai Gao, Minghui Zhou

Abstract

The reuse and distribution of open-source software must be in compliance with its accompanying open-source license. In modern packaging ecosystems, maintaining such compliance is challenging because a package may have a complex multi-layered dependency graph with many packages, any of which may have an incompatible license. Although prior research finds that license incompatibilities are prevalent, empirical evidence is still scarce in some modern packaging ecosystems (e.g., PyPI). It also remains unclear how developers remediate the license incompatibilities in the dependency graphs of their packages (including direct and transitive dependencies), let alone any automated approaches. To bridge this gap, we conduct a large-scale empirical study of license incompatibilities and their remediation practices in the PyPI ecosystem. We find that 7.27% of the PyPI package releases have license incompatibilities and 61.3 % of them are caused by transitive dependencies, causing challenges in their remediation; for remediation, developers can apply one of the five strategies: migration, removal, pinning versions, changing their own licenses, and negotiation. Inspired by our findings, we propose Silence, an SMT-solver-based approach to recommend license incompatibility remediations with minimal costs in package dependency graph. Our evaluation shows that the remediations proposed by Silencecan match 19 historical real-world cases (except for migrations not covered by an existing knowledge base) and have been accepted by five popular PyPI packages whose developers were previously unaware of their license incompatibilities.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages cites Watchman: monitoring dependency conflicts for Python library ecosystem
  • PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages cites Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystem
  • PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages cites A large-scale empirical study on Java library migrations: prevalence, trends, and rationales
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks cites Watchman: monitoring dependency conflicts for Python library ecosystem
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks cites Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystem
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks cites A large-scale empirical study on Java library migrations: prevalence, trends, and rationales
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks cites A Qualitative Study of Dependency Management and Its Security Implications
  • Licoeval: Evaluating LLMs on License Compliance in Code Generation cites PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages
  • Your "Notice" Is Missing: Detecting and Fixing Violations of Modification Terms in Open Source Licenses during Forking cites Identifying Open-Source License Violation and 1-day Security Risk at Large Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI PackagesKai Gao, Weiwei Xu, Wenhao Yang, Minghui ZhouFSE 2024 · 7 citations
  2. Licoeval: Evaluating LLMs on License Compliance in Code GenerationWeiwei Xu, Kai Gao, Hao He, Minghui ZhouICSE 2025 · 6 citations
  3. "The Law Doesn't Work Like a Computer": Exploring Software Licensing Issues Faced by Legal PractitionersNathan Wintersgill, Trevor Stalnaker, Laura A. Heymann, Oscar Chaparro et al.FSE 2024 · 6 citations
  4. Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain AttacksHao He, Bogdan Vasilescu, Christian KästnerFSE 2025 · 3 citations
  5. Your "Notice" Is Missing: Detecting and Fixing Violations of Modification Terms in Open Source Licenses during ForkingKaifeng Huang, Yingfeng Xia, Bihuan Chen, Siyang He et al.ISSTA 2024 · 3 citations

Builds on8

  1. Identifying Open-Source License Violation and 1-day Security Risk at Large ScaleRuian Duan, Ashish Bijlani, Meng Xu, Taesoo Kim et al.CCS 2017 · 126 citations
  2. Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM EcosystemChengwei Liu, Sen Chen, Lingling Fan, Bihuan Chen et al.ICSE 2022 · 94 citations
  3. A Qualitative Study of Dependency Management and Its Security ImplicationsIvan Pashchenko, Duc-Ly Vu, Fabio MassacciCCS 2020 · 84 citations
  4. Watchman: monitoring dependency conflicts for Python library ecosystemYing Wang, Ming Wen, Yepang Liu, Yibo Wang et al.ICSE 2020 · 65 citations
  5. A large-scale empirical study on Java library migrations: prevalence, trends, and rationalesHao He, Runzhi He, Haiqiao Gu, Minghui ZhouFSE 2021 · 47 citations

Related papers

  1. LiResolver: License Incompatibility Resolution for Open Source SoftwareSihan Xu, Ya Gao, Lingling Fan, Linyu Li et al.ISSTA 2023 · 6 citations
  2. Small Changes, Big Trouble: Demystifying and Parsing License Variants for Incompatibility Detection in the PyPI EcosystemWeiwei Xu, Hengzhi Ye, Kai Gao, Minghui ZhouICSE 2026 · 1 citation
  3. smartPip: A Smart Approach to Resolving Python Dependency Conflict IssuesChao Wang, Rongxin Wu, Haohao Song, Jiwu Shu et al.ASE 2022 · 15 citations
  4. Less is More? An Empirical Study on Configuration Issues in Python PyPI EcosystemYun Peng, Ruida Hu, Ruoke Wang, Cuiyun Gao et al.ICSE 2024 · 5 citations
  5. Knowledge-Based Version Incompatibility Detection for Deep LearningZhongkai Zhao, Bonan Kou, Mohamed Yilmaz Ibrahim, Muhao Chen et al.FSE 2023 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines