Skip to content

Install ALSA headers in the Colab notebook so python-rtmidi builds - #118

Merged
cpmpercussion merged 1 commit into
mainfrom
colab-rtmidi-fix
Sep 27, 2026
Merged

cpmpercussion merged 1 commit into
mainfrom
colab-rtmidi-fix

Conversation

@cpmpercussion

Copy link
Copy Markdown
Owner

Colab now runs Python 3.13, and python-rtmidi 1.5.8 has no Linux wheel for 3.13, so pip install impsy failed while building it from source. The install cell now installs libasound2-dev first when running in Colab. Tested in Colab: install and training both work.

The underlying problem is tracked in #117.

🤖 Generated with Claude Code

https://claude.ai/code/session_016oUxTsghWZWfnCnnkKcuNv

python-rtmidi 1.5.8 has no Linux wheel for Python 3.13, so on Colab pip
builds it from source, which fails without libasound2-dev.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016oUxTsghWZWfnCnnkKcuNv
Copilot AI lite review requested due to automatic review settings September 27, 2026 00:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The change addresses the reported Colab build issue without affecting non-Colab execution.

Review effort: Lite
Findings: None

What changed in this PR

Updates the Colab training notebook to install ALSA development headers so python-rtmidi can build on Python 3.13.

Changes:

  • Detects Colab environments.
  • Installs libasound2-dev before IMPSY.
  • Preserves non-Colab installation behavior.
File Description
notebooks/​impsy_training.ipynb Adds conditional ALSA header installation for Colab.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cpmpercussion
cpmpercussion merged commit baab47d into main Sep 27, 2026
11 checks passed
@cpmpercussion
cpmpercussion deleted the colab-rtmidi-fix branch September 27, 2026 00:49
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.

2 participants