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?
I was trying to run this notebook from module 1 in Google Colab but apart from the first cell which installs the necessary libraries:
every other cell in the notebook breaks.
Below is one example:
1. Echo environment:
cell
output:
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?