Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Magenta demos not working as !pip install magenta fails on Colab #113

Description

@crcdng

EDIT I went through all notebooks linked from the Website https://magenta.tensorflow.org/demos/colab/, opened them in Colab and checked the environment setup steps:

broken(building numba and llvmlite fails, see below)

  • DDSP Timbre Transfer
  • Music Transformer (doesn't build the old numpy)
  • GANSynth
  • Multitrack MusicVAE
  • Performance RNN (also uses Python2 which ins not supported anymore) 
  • E-Z NSynth
  • MusicVAE
  • Onsets and Frames
  • Latent Constraints (RuntimeError)

also broken: 'Getting Started' example linked from https://magenta.tensorflow.org/get-started/

** works**

  • Music Transcription with Transformers

The command !pip install magenta fails on Colab (as well as on other platforms) because the wheels for numba and llvmlite cannot be built:

The output is:

error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for numba (setup.py) ... error
  ERROR: Failed building wheel for numba
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for llvmlite (setup.py) ... error
ERROR: Failed building wheel for llvmlite

Has someone found a working solution for this? It would be valuable to revive these notebooks for teaching and general in order to play around with Music / Machine Learning.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions