Comments (13)
I was able to install it in a python 3.8 conda environment using the v0.8.0 tag on an M1 Pro:
I pulled down the repo, checked out the aforementioned tag, then commented out this line: https://github.com/openai/retro/blob/v0.8.0/CMakeLists.txt#L155. I noticed that the failures were beginning around the building of gambatte and wasn't interested in that core anyway.
After doing so, I was able to follow the build from source instructions in the docs:
- Install the Python CMake packge:
pip install cmake
- Install Lua 5.1 via Homebrew:
brew install pkg-config [email protected]
- Run CMake:
cmake . -DCMAKE_PREFIX_PATH=/usr/local/opt/qt -DBUILD_UI=ON -UPYLIB_DIRECTORY
- Run Make:
make -j$(sysctl hw.ncpu | cut -d: -f2)
- Install Python package via pip from local source:
pip install -e .
{% note %}
I had to roll back to OpenAI Gym v0.22.0 due to fundamental changes re: seeding -- pip install gym==0.22.0
{% endnote %}
If all goes well, you should end up with a running version of Retro Gym on your Apple Silicon:
from retro.
I was having the same issue, and for me rebuilding the environment in conda exclusively with python 3.8 worked. Seems like miniforge is using python 3.9 for the installation which is not compatible with the latest build. Try building a venv with python 3.8.
File "/Users/theaveasso/miniforge3/envs/introRL/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 670, in run
self.run_command('build')
from retro.
I'm trying to follow @ryneandal steps by I'm having a problem when running first cmake command:
"CMake Error at src/ui/CMakeLists.txt:1 (find_package):
By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Gui", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Gui" with any
of the following names:
Qt5GuiConfig.cmake
qt5gui-config.cmake
Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
"Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui"
provides a separate development package or SDK, be sure it has been
installed.
"
Does someone know how to solve it? Thanks a lot !
from retro.
I am running into the same issue as @bsotelo22. Does anyone know how to properly install qt for this purpose? I have already brew installed qt@5 on my machine, but am still getting this error.
from retro.
@borishim @awesome-aj0123 @
I was able to get gym-retro working on my M1 macbook air running Ventura and python3.10 (not using miniforge though)
Build from source
- Clone this fork of gym-retro
- NOTICE: This fork uses Gymnasium instead of Gym
pip install cmake wheel
brew install pkg-config [email protected] libzip qt5 capnp
echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.zshrc
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) # tells compiler where to find mac sdk
- I had to run this since I was getting the same errors as OP where CMake was looking in the wrong place for the SDKs)
pip install -e .
build UI
- build package from source
cmake . -DCMAKE_PREFIX_PATH=/usr/local/opt/qt -DBUILD_UI=ON -UPYLIB_DIRECTORY
make -j$(sysctl hw.ncpu | cut -d: -f2)
open "Gym Retro Integration.app"
I also have a wheel file that I can offer if people are interested
from retro.
@joezou You can use a maintained fork https://github.com/Farama-Foundation/stable-retro, it supports M1
from retro.
I could find my way around using miniconda3 or ven with python 3.8 like you said, but it would be cool if I can utilize the gpu.
from retro.
Iām still having this issue even with 3.8.
I created an env with
conda create -n myenv python=3.8
followed by conda activate myenv
then pip install gym-retro
and ended up with the same errors. How did you work around this issue?
from retro.
Let me go over my notes tonight after work and I'll see if I can identify a missed step in my instructions.
from retro.
I was having the same issue, and for me rebuilding the environment in conda exclusively with python 3.8 worked. Seems like miniforge is using python 3.9 for the installation which is not compatible with the latest build. Try building a venv with python 3.8.
I follow your steps, but I failed to install gym-retro on my Mac M1 Pro. Environment: Ventura 13.4, Python 3.8.16.
How can you install the gym-retro on Mac M1 successfully? Pls list detailed steps, thx.
from retro.
I'm trying to follow @ryneandal steps by I'm having a problem when running first cmake command:
"CMake Error at src/ui/CMakeLists.txt:1 (find_package): By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Gui", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Gui" with any of the following names:
Qt5GuiConfig.cmake qt5gui-config.cmake
Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set "Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui" provides a separate development package or SDK, be sure it has been installed. "
Does someone know how to solve it? Thanks a lot !
I had the same output message like yours.
then I did "brew install qt5" and change the path in step 3 to
/opt/homebrew/opt/qt@5 with success.
hope this could help.
from retro.
Related Issues (20)
- UnboundLocalError: local variable 'ext' referenced before assignment HOT 3
- I get errors when i try to install gym-retro how do i solve this issues HOT 4
- SimpleImageViewer Import not found HOT 2
- Playback_Movie: [WinError 2] The system cannot find the file specified HOT 1
- Hexadecimal memory locations for data.json HOT 1
- AttributeError: 'RetroEnv' object has no attribute 'em' HOT 4
- Can't install on Debian 11
- Can't load roms in gym HOT 3
- Variables constantly changing when they shouldn't? HOT 1
- two agent competing environment
- Add support for Python 3.9
- Issue with installing gym-retro (python 3.8) HOT 1
- support double dragon Neo-Geo(MAME Emulator) or PS ļ¼ HOT 2
- Sonic Down from steam store HOT 1
- subprocess.CalledProcessError: Command '['/usr/bin/make', '-j12', 'retro']' returned non-zero exit status 2. HOT 3
- Is there a C# version available?
- Add support to new versions!
- Mario Bros 3 - Can't Find Rom HOT 1
- Integration UI's download link has expired
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retro.