google-deepmind / lab

A customisable 3D platform for agent-based AI research
Other
7.06k stars 1.36k forks source link

RuntimeError: Failed to connect RL API #226

Open Jingjinganhao opened 2 years ago

Jingjinganhao commented 2 years ago

hello, I am learning the project , when I run python episodic-curiosity/scripts/launcher_script.py --workdir=/tmp/ec_workdir --method=ppo_plus_ec --scenario=sparseplusdoors it shows: RuntimeError: Failed to connect RL API In call to configurable 'DMLabWrapper' () Failed to find function dmlab_connect in library! How to fix it?

tkoeppe commented 2 years ago

I'm afraid I'm not familiar with that project. Could you please look at their documentation on how they expect DeepMind Lab to be set up?

Did you build or install DeepMind Lab in any way? Are you using Bazel to run that project's code?

o00000o commented 2 years ago

hello, I am learning the project , when I run python episodic-curiosity/scripts/launcher_script.py --workdir=/tmp/ec_workdir --method=ppo_plus_ec --scenario=sparseplusdoors it shows: RuntimeError: Failed to connect RL API In call to configurable 'DMLabWrapper' () Failed to find function dmlab_connect in library! How to fix it?

Hi, I'm also learning this project ,However, I am having various problems installing DeepMind-Lab. Could you please tell me what configuration environment you are using.My environment: Anaconda3 under the virtual environment PY3.6 And the version information in setup.py

o00000o commented 2 years ago

hello, I am learning the project , when I run python episodic-curiosity/scripts/launcher_script.py --workdir=/tmp/ec_workdir --method=ppo_plus_ec --scenario=sparseplusdoors it shows: RuntimeError: Failed to connect RL API In call to configurable 'DMLabWrapper' () Failed to find function dmlab_connect in library! How to fix it?

Hello, have you solved this problem?I have the same problem. RuntimeError: Failed to connect RL API and subprocess.CalledProcessError: Command '['python', '-m', 'episodic_curiosity.train_policy', '--workdir=/tmp/ec_workdir/ppo/sparse/run_number_1', '--num_env=12', '--env_name=dmlab:explore_goal_locations_large', '--num_timesteps=20000000', '--gin_bindings', 'CuriosityEnvWrapper.exploration_reward="oracle"', '--gin_bindings', 'CuriosityEnvWrapper.scale_task_reward=1.0', '--gin_bindings', 'CuriosityEnvWrapper.scale_surrogate_reward=0.0', '--gin_bindings', 'train.ent_coef=0.0010941138105771857', '--gin_bindings', 'train.learning_rate=0.00019306977288832496']' returned non-zero exit status 1.

o00000o commented 2 years ago

I'm afraid I'm not familiar with that project. Could you please look at their documentation on how they expect DeepMind Lab to be set up?

Did you build or install DeepMind Lab in any way? Are you using Bazel to run that project's code?

hi,I follow the steps in https://github.com/deepmind/lab/blob/master/docs/users/build.md This command runs without problem bazel run :python_random_agent --define graphics=sdl -- --length=10000 --width=640 --height=480 bazel build -c opt //:deepmind_lab.so and bazel test -c opt //python/tests:python_module_test No problem But RuntimeError: Failed to connect RL API appears when I run bazel run -c opt //:python_random_agent 2021-10-21 09-51-11屏幕截图