Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Failed to connect RL API #226

Open
Jingjinganhao opened this issue Sep 28, 2021 · 4 comments
Open

RuntimeError: Failed to connect RL API #226

Jingjinganhao opened this issue Sep 28, 2021 · 4 comments

Comments

@Jingjinganhao
Copy link

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
Copy link
Collaborator

tkoeppe commented Sep 28, 2021

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
Copy link

o00000o commented Oct 15, 2021

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
Copy link

o00000o commented Oct 20, 2021

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
Copy link

o00000o commented Oct 21, 2021

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屏幕截图

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants