Google にはこのエラーに対する解決策がかなりありますが、それらの方法では解決できませんでした。どうしてか分かりません。
Traceback (most recent call last):
.
.
.
File "C:\Users\tla101\anaconda3\envs\cog2021\lib\site-packages\rainy\utils\log.py", line 37, in set_dir_from_script_path
repo = git.Repo(script_path, search_parent_directories=True)
File "C:\Users\tla101\anaconda3\envs\cog2021\lib\site-packages\git\repo\base.py", line 181, in __init__
raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: C:\Users\tla101\cog2021\agents\ppo_naturecnn.py
最後の5行が主な問題だと思います。
PSpipenvを使用せずにgithubリポジトリをたどってみました。
https://github.com/kngwyu/rogue-gym-agents-cog19