question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when stable baselines is not installed

See original GitHub issue

Trying to use rlberry.agents raises an error if stable baselines is not installed due to this line:

https://github.com/rlberry-py/rlberry/blob/731879e986f155b13782ddc54c462515f374b774/rlberry/agents/__init__.py#L18

We could include a check before this line.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mmcentacommented, Apr 22, 2022

No problem, I think it’s a fine solution too.

I can just delete the import (and the logger) from __init__.py in my PR if that’s okay.

1reaction
TimotheeMathieucommented, Apr 22, 2022

We can do a warning or we can avoid this by not putting it in the init. We say that people must import from rlberry.agents.stable_baselines.SableBaselineAgent. Kind of like when we say that we import from rlberry.agents.torch.a2c and not rlberry.agents.a2c.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — Stable Baselines 2.10.3a0 documentation
Trying to create Atari environments may result to vague errors related to missing DLL files and modules. This is an issue with atari-py...
Read more >
Tensorflow requirement not satisfied but installation succeeds
I tried installing stable-baselines in a virtualenv in python 3.7.7 and Ubuntu 18.04: pip install stable-baselines Although there is no ...
Read more >
Stable Baselines doesn't work with tensorflow - Stack Overflow
The answer just says "I used anaconda", but there is no stable-baselines package in anaconda! I tried installing tensorflow from anaconda and ...
Read more >
Stable Baselines Documentation - Read the Docs
Stable Baselines is a set of improved implementations of Reinforcement Learning (RL) algorithms based on OpenAI. Baselines. Github repository: ...
Read more >
ImportError when running Reinforcement Learning using ...
Hi, I try to running Reinforcement Learning using Stable Baselines. When I execute ~/.local/share/ov/pkg/isaac_sim-2021.2.1/python.sh train.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found