Skip to content

--extra-search-dir pointing at a file crashes seeding with a misleading download error #3582

Description

@Pratik-Kumar-Dhakar

Issue

--extra-search-dir documents its value as "a path containing wheels". A path that doesn't exist is skipped silently. A path that is a file, such as a wheel, crashes seeding instead, and the error blames a download:

$ virtualenv xsd --extra-search-dir ./pip-26.3-py3-none-any.whl
...
NotADirectoryError: [Errno 20] Not a directory: '.../pip-26.3-py3-none-any.whl'
...
RuntimeError: seed failed due to failing to download wheels pip

--seeder pip fails with the same NotADirectoryError.

BaseEmbed.__init__ keeps the entries where exists() is true (seed/embed/base_embed.py). Later discover_wheels calls iterdir() on each one. Keeping only directories would treat a file the same way as a missing path.

Environment

  • OS: Zorin OS 17.3 (Ubuntu 22.04 base), Linux 6.8
  • Shell: bash 5.1
  • Python version and path: CPython 3.15.2 (uv-managed)
  • virtualenv: main @ 53748fe (21.15.9)

Activity

  1. added a commit that references this issue on Nov 20, 2026
    11fb586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions