[BUG] FileNotFoundError: [Errno 2] No such file or directory: '/tmp/nlew7mo9hzl'
Opened this issue ยท 2 comments
๐ Bug
We get a file not found error when looking for the NetHack temporary directory after running our RL algorithm for > 1M steps. This error doesn't occur on all runs, only some runs get this error. We use the following environment wrapper over MiniHack:
https://github.com/AGI-Labs/continual_rl/blob/develop/continual_rl/experiments/tasks/make_minihack_task.py.
To Reproduce
Steps to reproduce the behavior:
We run our RL algorithm on any Minihack environments (RoomRandom-15x15 or RoomTrap-15x15). Occasionally after around 1M steps we obtain the following FileNotFoundError when looking for the NetHack tmp directory:
![Screen Shot 2023-06-04 at 11 14 29 PM](https://private-user-images.githubusercontent.com/7550591/243221055-2c88a303-11ce-4b39-9d58-426fb7265b91.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1ODgxMTIsIm5iZiI6MTcyNDU4NzgxMiwicGF0aCI6Ii83NTUwNTkxLzI0MzIyMTA1NS0yYzg4YTMwMy0xMWNlLTRiMzktOWQ1OC00MjZmYjcyNjViOTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjVUMTIxMDEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGI1MDk2YTQ2NzQwZGE0YjgwNWNmMTc1NjE3ZjMxOTY0NzBiMjQyOThkN2ZkNTAxZjFjZjAyOWNhYmQ5OWUxZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.n08wxFpUkCX3s_MmGbSH9dyduye1xU-zoerLRLic_9Q)
Expected behavior
No FileNotFoundError when running our RL algorithm on MiniHack.
Environment
I'm running this on a SLURM scheduler so didn't collect the GPU info.
Collecting environment information...
MiniHack version: 0.1.3
NLE version: 0.8.1
Gym version: 0.23.1
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: CentOS Linux release 8.1.1911 (Core)
GCC version: (conda-forge gcc 10.3.0-16) 10.3.0
CMake version: version 3.23.2
Python version: 3.8
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.19.5
[conda] Could not collect
Additional context
This looks like an NLE problem as the directory creation goes back to there. That, and/or a problem with your computer deleting temp files automatically after a certain amount of time?
Was there any solution to this?