Open JunhongXu opened 7 years ago
I got the same situation. Did this issue solved?
@mikeXwang Did you solve it?
I'm facing the same issue
It turns out that we need to start Minecraft before we import PyTorch. I have successfully trained a A2C agent to navigate in the simplest environment in PyTorch. You can check out the code if you are interested https://github.com/JunhongXu/pytorch-a2c-minecraft/blob/master/run_minecraft.py
@JunhongXu wow! thank you
I have been playing with this environment these days and would like to use pytorch to train a RL agent. However, when I import pytorch inside the script, the program gives a segmentation fault.
Code:
The minecraft program is launched but does not load any task and throws a segmentation fault:
However, if I remove import torch, it works fine.
Edit:
Here is the backtrace: