Closed pnlong closed 2 years ago
Hey. To run on headless servers, our go-to recommendation is to use Xvfb
to create a virtual display buffer. On Debian you can install it with sudo apt install xvfb
, and then run your code with xvfb-run -a python your_script.py
. That should fix the issue :)
Thank you @Miffyli.
While I continue to get the following warning --
/data/homezvol2/pnlong/.conda/envs/minerl/lib/python3.9/runpy.py:127: RuntimeWarning: 'minerl.utils.process_watcher' found in sys.modules after import of package 'minerl.utils', but prior to execution of 'minerl.utils.process_watcher'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
--- my program now runs without error.
So I have successfully installed the
minerl
package into my anaconda environment. I am running Python 3.9.12. I am working on a remote server where I will then use X11 forwarding to display anything theminerl
package needs to display. The following code runs successfully:All good, right? However, when I then run
>>> obs = env.reset()
, I am first greeted with this warning:Some research as well as discussion on the minerl discord server has told me that this warning is normal, and even pops up on successful
minerl
runs. Ok. However, after this warning, what is not normal is that I get the following error, and I cannot getminerl
to work.I want to say that the issue root of the issue is here:
The issue is similar to the one mentioned here, but it is not the same. I have looked into "GLFW" errors and come across this, which suggests installing a new version of LWJGL (Lightweight Java Game Library). I don't know how to do this though or where I'd install it. But this could very well be a red herring as well.
This is the info about my java version:
Has anyone encountered this issue? If so, did you find a work-around? Thanks in advance.