google-deepmind / bsuite

bsuite is a collection of carefully-designed experiments that investigate core capabilities of a reinforcement learning (RL) agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot import Random

JaroslavVitku opened this issue · comments

After installation, I was getting the 'cannot import Random', there was conflict between your bsuite/baselines/random/random.py and system random.Random class (as suggested here). After refactoring to random_baseline.RandomBaseline everything seems to work.

Hi there! Thanks for the bug report. How are you importing this? If you use absolute imports this should work, i.e.

from bsuite.baselines.random import random

Unfortunately I don't remember exactly how I imported that, but I think I was just running the code from the repo. Anyway, if there are no others with the issue, maybe the problem was on my side, so closing this.