Skip to content

Bug: Install errors in Google colab in tutorials #92

@serjikibm

Description

@serjikibm

Problem description

A cell with the command %pip install -q "granite-switch[tutorials]" in a colab fails with the following errors

Building wheel for rouge_score (setup.py) ... done
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
google-colab 1.0.0 requires ipython==7.34.0, but you have ipython 9.14.1 which is incompatible.
moviepy 1.0.3 requires decorator<5.0,>=4.0.2, but you have decorator 5.3.1 which is incompatible.
opentelemetry-exporter-gcp-logging 1.11.0a0 requires opentelemetry-sdk<1.39.0,>=1.35.0, but you have opentelemetry-sdk 1.42.1 which is incompatible.
google-adk 1.29.0 requires opentelemetry-api<1.39.0,>=1.36.0, but you have opentelemetry-api 1.42.1 which is incompatible.
google-adk 1.29.0 requires opentelemetry-sdk<1.39.0,>=1.36.0, but you have opentelemetry-sdk 1.42.1 which is incompatible.
google-adk 1.29.0 requires starlette<1.0.0,>=0.49.1, but you have starlette 1.3.0 which is incompatible.
gradio 5.50.0 requires starlette<1.0,>=0.40.0, but you have starlette 1.3.0 which is incompatible.

How to recreate

Quick analysis

Google Colab installs specific versions of core libraries that it depends on, e.g.:

ipython==7.34.0
decorator<5
specific starlette, opentelemetry, etc.

The install pulls newer versions of these dependencies, which overwrite Colab’s pinned ones.

Colab needs ipython==7.34.0, but install upgraded to ipython 9.14.1
Colab needs decorator<5, but you now have 5.3.1
Packages expect starlette<1, but got 1.3.0
OpenTelemetry versions are too new

Expected result

Installation is successful without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions