-
Notifications
You must be signed in to change notification settings - Fork 40
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
First run on Mac OS #31
Comments
Hi @Mardox91, Thanks for the detailed information; that's very helpful. The error you are getting is related to the attempted use of the environment variable My first suggestion would be to experiment with XQuartz, although I know nothing about it and am not even sure it will work. The environment currently uses xvfb by default and that may or may not work (see here). Alternatively, you could disable xvfb in the config file and attempt to run straight on your main display. As mentioned in the README, this is a little more cumbersome because you have to ensure the emulator is the topmost window and statically positioned for the duration of execution. Also, because this failure is occurring when reading the DISPLAY variable, you will also need to comment out a couple lines (at least L192 & L234 here). It's worth mentioning, since you brought up One last thing for now: I am also going to be adding Docker support soon (no promises on a date). This should make the project completely platform independent, and make the setup / getting started process pretty negligible. That's my hope anyway. I've still got some details to sort out and I need to do a write-up on its use, but I do have it working. So keep an eye out for that commit soon. Ok, so all that said, please keep me updated with the direction you take and if you're able to make any progress. Also, let me know if you have any other questions or things I can help with along the way. |
BTW, I just noticed that I forgot to update the |
Hi,
We have solved for now this issue with the introduction of
Now we are trying to fix this issue. We will keep you updated. |
Thanks for the update. I'm glad to hear you are making some progress. I've seen that error, I'm at work right now, so can't look closely into the rest of this until later, but will try to see if I have any other suggestions this evening. |
Thank you for your response
|
So |
Just to clarify, the latest output you included looks like it is still from the Mac, not from Ubuntu. Is that correct? If so, was the error message any different on Ubuntu? The error is complaining that the address is in use when trying to start the controller http server. I wonder if you have some other process running on the machine using that port. The port is configured for 8082. Please verify if anything else may be listening on that port. The port number is configurable in the Ok after writing all of that and reviewing the error stack trace again, I'm starting to think the issue may be different. It almost looks to me like there is a recursive loop going on. At the beginning, the call that is failing is Two suggestions to move forward. First, simply rename the file to Please let me know if any of that doesn't make sense, or if it gets things working. If so, I'll have to make a note in the README about that test code. Really interesting behavior that I haven't seen before. |
Wow, as I was writing that you guys found the same thing. Glad to hear that you fixed it. |
LoL Thank you. |
Yes, please do keep me posted. I look forward to seeing any results you are able to achieve. Be aware that the currently implemented reward function does not seem to work well (in my experience). I'm working on changes to that, as well as changes to the architecture to more easily support variations to the reward function. You may discover that you need to make changes as well in order to get good agent behavior. If you encounter any other issues, or have ideas for improvements, feel free to open new issues and/or submit pull requests. |
@Mardox91 It just occurred to me that the other window that pops up is likely from the call to You may want to confirm the data that is coming back as an observation is a valid image from Mario Kart. Otherwise, the issue might be with the screenshot library Sorry I didn't consider this a little more the other day and I hope you guys haven't been stuck as a result. |
@Mardox91 Sorry to keep spamming this issue, but I also wanted to give you a heads-up that I'm going to merge in PR #32. I made some changes to the way Xvfb is started up. The changes I made won't likely help with the XQuartz issues described above, but the lines changed are near the lines that you guys had to change to get things working. You may encounter a merge conflict as a result. It shouldn't be too bad, but I didn't want it to catch you by surprise. |
Hi @bzier, Even with xQuartz we had some issues with what the agent would see. The popup screen had some interlacing problems(e.g. on odd rows we had the correct screen and on even we had a zoomed version of the view) we've tried to solve this problem by showing only the odd rows of the view. With that 'problem' in mind I've ended up around the web in in search of similar projects and in the end I've come up with an idea: On a youtube video comments I've found that with another emulator BizHawk there is an already present RAM analizer. I think that given some of the link provided above and more time it is possible to replicate this method on mupen64plus. |
Thanks for sharing! I'm excited to see what you come up with 😄 |
@Mardox91 Thank you for the update. I am curious to see your results as well. I'm currently working through changes to the reward function as well, although only due to poor learning and not the graphical glitches you described. It looks like that BizHawk emulator is actually built on mupen64plus (see here). I have been considering some architectural changes for performance reasons and may look into what they've done as one reference. Besides the changes from the environment/emulator standpoint, I'm really excited to see what kind of learning results you are able to achieve. If you write something up (for the university course or otherwise), I'd be interested in reading it. |
Hi,
I'm trying to run gym-mupen64plus on Mac OS, but when I arrive at
conda env create -f environment.yml
I get the following error
``
By editing the environment.yml file and deleting
- wx>=3.0.3
I manage to create the environment. After that i would activate the environment and `pip install wxPyhton` https://wiki.wxpython.org/How%20to%20install%20wxPython.Using the test file described in your readme I get the following error
The text was updated successfully, but these errors were encountered: