Impossible to import A2C without optuna in gymnasium branch #311
Labels
dependencies
Pull requests that update a dependency file
discussion
This issue needs further discussion
Marathon
To do during Marathon
Importing A2C agent from rlberry.agents.torch automatically tries to import optuna (which is not part of rlberry's install dependencies, but of "default" dependencies which are part of extra dependencies) and therefore leads to a bug.
There should be a way to import and use A2C without relying on optuna for basic usage.
Version
rlberry version : 0.4.0.post30.dev0+9116ac1 installed without extras.
Reproducing
poetry add git+https://github.com/rlberry-py/rlberry#gymnasium
>>> from rlberry.agents.torch import A2CAgent
The text was updated successfully, but these errors were encountered: