Skip to content

module 1 notebook is full of bugs #2

Description

@solomonleo12345

I was trying to run this notebook from module 1 in Google Colab but apart from the first cell which installs the necessary libraries:

# Install dependencies
!pip install -q openenv-core

every other cell in the notebook breaks.


Below is one example:

1. Echo environment:

cell

from envs.echo_env import EchoEnv, EchoAction

# Connect to the hosted Echo environment
with EchoEnv(base_url="https://openenv-echo-env.hf.space").sync() as env:
    # reset() starts a new episode
    result = env.reset()
    print("After reset:")
    print(f"  Observation: {result.observation}")
    print(f"  Done: {result.done}")
    print()

    # step() takes an action and returns the next observation
    result = env.step(EchoAction(message="Hello, OpenEnv!"))
    print("After step:")
    print(f"  Observation: {result.observation}")
    print(f"  Reward: {result.reward}")
    print(f"  Done: {result.done}")
    print()

    # state() returns episode metadata
    state = env.state()
    print("State:")
    print(f"  Episode ID: {state.episode_id}")
    print(f"  Step count: {state.step_count}")

output:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[/tmp/ipykernel_543/408460619.py](https://localhost:8080/#) in <cell line: 0>()
----> 1 from envs.echo_env import EchoEnv, EchoAction
      2 
      3 # Connect to the hosted Echo environment
      4 with EchoEnv(base_url="https://openenv-echo-env.hf.space/").sync() as env:
      5     # reset() starts a new episode

ModuleNotFoundError: No module named 'envs'

I understand this is a missing module error and I can install it somehow from the internet, but shouldn't have this already taken care of?

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