Skip to content

The colab demo link doesn't work #411

@ssancheti

Description

@ssancheti

WARNING:root:Looks like game engine is not compiled, please run:
WARNING:root: pushd /usr/local/lib/python3.12/dist-packages/gfootball_engine && cmake . && make -j nproc && popd
WARNING:root: pushd /usr/local/lib/python3.12/dist-packages/gfootball_engine && ln -s libgame.so _gameplayfootball.so && popd

ImportError Traceback (most recent call last)
/tmp/ipykernel_23887/1645321388.py in <cell line: 0>()
----> 1 import gfootball.env as football_env
2 env = football_env.create_environment(env_name="academy_empty_goal_close", stacked=False, logdir='/tmp/football', write_goal_dumps=False, write_full_episode_dumps=False, render=False)
3 env.reset()
4 steps = 0
5 while True:

3 frames
/usr/local/lib/python3.12/dist-packages/gfootball/init.py in
15 """Google Research Football."""
16
---> 17 from gfootball.env import scenario_builder
18
19 import gym

/usr/local/lib/python3.12/dist-packages/gfootball/env/init.py in
19 from future import print_function
20
---> 21 from gfootball.env import config
22 from gfootball.env import football_env
23 from gfootball.env import observation_preprocessing

/usr/local/lib/python3.12/dist-packages/gfootball/env/config.py in
22 from absl import flags
23
---> 24 import gfootball_engine as libgame
25
26 FLAGS = flags.FLAGS

/usr/local/lib/python3.12/dist-packages/gfootball_engine/init.py in
41
42 try:
---> 43 from _gameplayfootball import *
44 except:
45 if not (os.path.isfile(os.path.join(game_path, 'libgame.so')) and

ImportError: /usr/local/lib/python3.12/dist-packages/gfootball_engine/_gameplayfootball.so: file too short


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

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