Skip to content

Fix Colab setup: install git-annex from PyPI instead of NeuroDebian - #60

Merged
mvdoc merged 1 commit into
mainfrom
claude/trusting-cray-1cvsl8
Sep 24, 2026
Merged

mvdoc merged 1 commit into
mainfrom
claude/trusting-cray-1cvsl8

Conversation

@mvdoc

@mvdoc mvdoc commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Fixes #59.

Problem

The Colab setup cell installed git-annex-standalone from the NeuroDebian apt repository. That no longer works:

  • NeuroDebian's archive signing key is dsa1024, which current apt rejects as untrusted.
  • The sources list was pinned to jammy, but Colab now runs Ubuntu noble.

As a result, git-annex-standalone had no install candidate and the data downloads failed.

Fix

Stop using NeuroDebian entirely and install git-annex from PyPI (pip install git-annex). The wheel ships a standalone static git-annex build, so it does not depend on the Ubuntu release, apt keys, or third-party repositories, which should keep this working through future Colab image updates. Inkscape is still installed via apt-get from the stock Ubuntu repositories.

New setup cell:

!git config --global user.email "you@example.com" && git config --global user.name "Your Name"
!apt-get -qq update > /dev/null
!apt-get install -qq inkscape > /dev/null
!pip install -q git-annex voxelwise_tutorials

Changes

  • tutorials/notebooks/shortclips/01_setup_colab.ipynb: updated the install cell and the explanatory comment cell.
  • vem_tutorials_merged_for_colab.ipynb and vem_tutorials_merged_for_colab_model_fitting.ipynb: same edit, kept in sync with the source notebook.
  • README.rst: noted that pip install git-annex is an option on Linux.

Testing

  • Installed the current git-annex wheel (10.20260901.post1, manylinux_2_34) in a clean venv on Ubuntu 24.04 (glibc 2.39, same as Colab); git annex version runs correctly.
  • Not yet run end-to-end in a live Colab runtime.

CI workflows and Docker images get git-annex from Ubuntu/conda-forge, not NeuroDebian, so they are unaffected.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JSD3PGSWRD4oZi4Z9zPe7W


Generated by Claude Code

The NeuroDebian apt repository no longer works on Colab (Ubuntu noble):
its signing key uses dsa1024, which apt now rejects, and the sources list
was pinned to jammy, so git-annex-standalone had no install candidate.

Install git-annex from PyPI instead. The wheel ships a standalone
git-annex build, so it does not depend on the Ubuntu release, apt keys,
or third-party repositories. Inkscape is still installed from the stock
Ubuntu repositories.

Fixes #59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JSD3PGSWRD4oZi4Z9zPe7W
@mvdoc
mvdoc merged commit bfe4d9b into main Sep 24, 2026
12 checks passed
@mvdoc
mvdoc deleted the claude/trusting-cray-1cvsl8 branch September 24, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue colab setup

2 participants