-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to start an environment with obs = env.reset() on macos #659
Comments
here's my conda env setting
|
Hey! Are you running on a headless machine without display? MineRL/Minecraft requires a valid display buffer to be able to run. You can use xvfb for this with |
I got the exact same error on my MacBook. Any update to this? I don't think |
Unfortunately MineRL v1.0 does not run on Mac at the moment, and no-one has had time to look into :( |
OK, after hours of debug, I made it work on an MacBook Pro (with Apple Silicon M1 Pro) running MacOS 12.6.1. This solution SHOULD work on any Apple Silicon based Mac. Here is how I did it. TLDR version
If installation failed, it could be the problem of JDK. The JDK I found working is the Oracle JDK 1.8, you will need to sign-in to download it. This JDK is for x86_64, so you will need Rosette to run it. Other people also has some success with OpenJDK.
Note: you can also change the memory for JVM by changing the
GLFW.glfwSetWindowIcon(this.handle, buffer); Also comment out or remove the entire method body of public static void checkGlfwError(BiConsumer<Integer, String> glfwErrorConsumer) {
// remove or comment out anything here
// DO NOT remove this method declaration
}
Technical Details
It's appreciated if someone can verify this works. As I tried so many things in attempt to fix this, I might forgot to write everything down. |
@lewisxy Oooo this is amazing! @trigaten any chance you could try this? I could also try on my M1 Mac but atm quite busy. It would be awesome to have this stuff merged into code :). It does not look like we are going to sacrifice any functionality. We just need to make sure these changes would still work on Windows and Linux. |
I executed the command according to #659 (comment) and confirmed that it works. Thanks @lewisxy!
|
This worked and I was able to install minerl on my m2 mac (woot). However, python is having trouble finding the Traceback (most recent call last):
File "...", line 2, in <module>
import minerl.data
ModuleNotFoundError: No module named 'minerl.data' Did you encounter this error at all? |
I believe |
Oh, I see. That'll do it. Thanks! |
@lewisxy Thank you so much for your helpful tutorial! I followed your steps but ended up getting this error: GLFW error 65548: Cocoa: Regular windows do not have icons on macOS. I was wondering if you have gotten an error like this before? I commented out the lines that you mentioned in MainWindow.java but I'm still getting the error. Do you have any ideas on how I could troubleshoot? Thank you so much! |
Add -XstartOnFirstThread to launch command. See minerllabs#659 (comment)
This is the error: GLFW error 65548: Cocoa: Regular windows do not have icons on macOS. Please make sure you have up-to-date drivers (see aka.ms/mcdriver for instructions). Fix from minerllabs#659 (comment) See more info LWJGL/lwjgl3#695
above code has no error
but got error with env.reset()
I got the following error, and I cannot get minerl to work.
The text was updated successfully, but these errors were encountered: