Skip to content
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

is it possible running on Mac OS with xquartz? #15

Closed
zjsjack opened this issue Jun 8, 2017 · 2 comments
Closed

is it possible running on Mac OS with xquartz? #15

zjsjack opened this issue Jun 8, 2017 · 2 comments

Comments

@zjsjack
Copy link

zjsjack commented Jun 8, 2017

I've tried to run the test on Mac OS but failed with the blew error:
f45c89c335f7:gym-mupen64plus zhangjs$ python ./test.py
[2017-06-08 14:42:59,496] Making new env: Mario-Kart-Luigi-Raceway-v0
('ControllerHTTPServer started on port ', 8082)
initial_disp: /private/tmp/com.apple.launchd.BE9zLpGjMp/org.macosforge.xquartz:0
Starting emulator with comand: ['/Users/zhangjs/Downloads/mupen64plus-bundle-osx64-2.5/mupen64plus.app/Contents/MacOS/mupen64plus', '--corelib', '/Users/zhangjs/Downloads/mupen64plus-bundle-osx64-2.5/mupen64plus.app/Contents/MacOS/libmupen64plus.dylib', '--resolution', '640x480', '--input', '/usr/local/lib/mupen64plus/mupen64plus-input-bot.so', '/Users/zhangjs/Downloads/mupen64plus-bundle-osx64-2.5/gym-mupen64plus/gym_mupen64plus/ROMs/marioKart.n64']
Calling wx.App() with DISPLAY: /private/tmp/com.apple.launchd.BE9zLpGjMp/org.macosforge.xquartz:0


| / |_ _ _ __ ___ _ __ / /_ | || | | _ | |_ _ ___
| |/| | | | | '_ \ / _ \ '_ | '_ | || || |) | | | | / |
| | | | || | |) | / | | | (_) | | __/| | || __ \
|| ||_,| .
/ _|| ||_/ || || ||_,|_/
|
| http://code.google.com/p/mupen64plus/
Mupen64Plus Console User-Interface Version 2.5.0

UI-Console Error: dlopen('./libmupen64plus.dylib') failed: dlopen(./libmupen64plus.dylib, 2): image not found
UI-Console Error: AttachCoreLib() Error: failed to find Mupen64Plus Core library
2017-06-08 14:42:59.643 Python[62911:699335] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/k5/6933ktg504j586906rr7b8k88ms4cf/T/org.python.python.savedState
Changed DISPLAY to: /private/tmp/com.apple.launchd.BE9zLpGjMp/org.macosforge.xquartz:0
Emulator closed with code: 2
('Frame ', '10', ': ', '[0, 0, 1, 0, 0]')

Not sure is it doable on Mac OS?

@bzier
Copy link
Owner

bzier commented Jun 12, 2017

Hey @zjsjack,
Unfortunately I don't have a Mac to test, so I'm not sure. I'll try to take a closer look at the error you're getting in the next couple days and see if I can come up with any suggestions.

This was referenced Nov 27, 2017
@bzier
Copy link
Owner

bzier commented Feb 21, 2021

I know this issue is nearing 4 years old now, but want to add a note before closing it. A couple things to mention which have changed since this was opened:

  • The project no longer uses wxPython for screenshots; this was replaced with mss
  • The project has been containerized using Docker, which handles all the dependencies

While it may be possible to run this on MacOS with XQuartz, it may involve making some changes to support. With the Docker container, this runs fine on MacOS (no need for XQuartz), and I'm only planning to support the Docker setup at this point, so my recommendation to anyone who comes across this issue is to run that way instead. Closing this issue to clean up :)

@bzier bzier closed this as completed Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants