Skip to content

Bug: Broken pip install links in Module 1 Notebook (Exit code 128 & Missing pyproject.toml) #4

@maverick006-ghost

Description

@maverick006-ghost

Hey team,

Was grinding through Module 1 for the hackathon today and bumped into a few broken ""!pip install" links in the Colab notebook.

What is happening:

  1. The Hugging Face Spaces links for 'Echo' and 'Catch' are throwing an exit code: 128
  2. The TextArena Wordle link fails because pip can't find a setup.py or pyproject.toml file in that specific repo.

The Fix:
I managed to get everything running smoothly by bypassing the HF Spaces entirely and pulling the client code directly from the official Meta GitHub using the subdirectory flag.

Here are the working replacements if you want to update the notebook for the rest of the cohort:

Change these:
!pip install -q git+https://huggingface.co/spaces/openenv/echo-env
!pip install -q git+https://huggingface.co/spaces/openenv/openspiel-env
!pip install -q git+https://huggingface.co/spaces/burtenshaw/textarena

To these:
!pip install -q "git+https://github.com/meta-pytorch/OpenEnv.git#subdirectory=envs/echo_env"
!pip install -q "git+https://github.com/meta-pytorch/OpenEnv.git#subdirectory=envs/openspiel_env"
!pip install -q "git+https://github.com/meta-pytorch/OpenEnv.git#subdirectory=envs/textarena_env"

(Just a heads-up: using this fix means the Python imports in the next cells need the envs. prefix dropped, e.g., changing from envs.openspiel_env import OpenSpielEnv to from openspiel_env import OpenSpielEnv).

Hope this helps save some time for everyone else jumping into the hackathon. Let me know if you want me to just open a PR for this!

Cheers.

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