Skip to content

run_sorter() fails after pip 26.0+ due to deprecated #egg= syntax #4368

@esutlie

Description

@esutlie

Hey! Running into an issue with containerized sorting using installation_mode="github" (or "auto"). Modern pip (26.0+) rejects the #egg= fragment syntax when extras are included.

The error:

× The 'spikeinterface[full]' egg fragment is invalid
hint: Try using the Direct URL requirement syntax: 'name[extra] @ URL'

The current code in install_package_in_container() builds:

pip install ... https://github.com/.../archive/main.tar.gz#egg=spikeinterface[full]

But pip 26.0+ wants the Direct URL syntax instead:

pip install ... "spikeinterface[full] @ https://github.com/.../archive/main.tar.gz"

This was a bit tricky to track down since the pip failure is silent. It only shows up later as a ModuleNotFoundError when the container tries to import spikeinterface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions