Random agent catch does not run.
Closed this issue · 2 comments
Hi!
When I run the random_agent_catch.py file, there seems to some kind of RuntimeError saying that no such file /tmp/catch_data/metadata.riegeli exists and quits right after that. Even when building and testing with Bazel, it seems to fail at the same metadata.riegeli does not exists RuntimeError.
Hello @Itssshikhar, thanks for opening this bug!
Can you try creating the directory before running EnvLogger?
mkdir /tmp/catch_data/
The code is expected to fail if the directory doesn't exist before instantiating the logger. Please see these lines:
envlogger/envlogger/backends/cc/riegeli_dataset_writer.h
Lines 39 to 48 in a209612
I can see that the info is only present in C++, but not in Python. I'll see if I can add a sentence to the docs, and also to the README.
Cheers,
Daniel
Hey @kenjitoyama! Thanks for the heads up.
Was able to solve this issue precisely by creating a catch_data directory in /tmp/.
Cheers,
Shikhar