Comments (8)
Let me see if I can get an emulated environment up and running that can duplicate the error and make sure the pandas solution will work here. Thanks for catching this issue and providing a solution!
from nes-py.
I found a fix for OS X 10.11 with CommandLineTools 9.2, but it should work for other versions.
Just add '-stdlib=libc++'
in setup.py under EXTRA_COMPILE_ARGS
Then run pip install -e .
in the repo folder
If you are getting clang: error: invalid deployment target for -stdlib=libc++
do export MACOSX_DEPLOYMENT_TARGET=10.10
from nes-py.
OSX 10.13.6
clang-1000.10.44.4
My solution, paste this 2 commands in the terminal:
- export MACOSX_DEPLOYMENT_TARGET=10.13
- CFLAGS='-stdlib=libc++' pip install nes-py
macOS-deployment-target can be less then 10.13, but I'm not sure how much less
from nes-py.
I can't seem to replicate the issue on either my development machine or build server both running MacOS 14.14.4 with Xcode 10.2.1 (also clang 10.0.1 and python 3.7.3). Which specific version of MacOS and Xcode caused this compilation failure?
It does appear that libstdc++ has been deprecated by Apple in favor of libc++ [1]. It may be worth exploring the support for libc++ on Linux and Windows instead of building on deprecated MacOS toolkits.
EDIT: quickly found a rebuttal to the above idea.
from nes-py.
I am on OS X 10.14.4 with the CommandLineTools installed, not Xcode. CommandLineTools version is 10.2.1.0.1.1554506761.
from nes-py.
I've switch compilers as g++ produces better results on Linux (although the results are the same on MacOS for both clang++ and g++). If the issue still happens, it might be worth updating setup.py with some MacOS specific logic for more seamless installation.
from nes-py.
Running MACOSX_DEPLOYMENT_TARGET=10.9 pip install nes-py
worked for me
from nes-py.
Closing issue as it seems stale and mostly environment-dependent.
from nes-py.
Related Issues (20)
- ImportError when using nes_py.wrappers/JoypadSpace HOT 1
- Screenshots HOT 2
- Helpme
- Continuous prediction of action by agent does not result in the desired action in the Env HOT 1
- super-mario bug help me
- I cannot reproduce results for an agent. What is going on? HOT 1
- How to support ROM mapper number which is not supported now HOT 2
- Is nes-py available in Anaconda environment? HOT 2
- Access information not stored in RAM HOT 1
- Can the simulator output audio info? HOT 1
- Nes-py not installing on Ubuntu HOT 2
- Can't compile it in m1 mac HOT 2
- Hold button HOT 1
- 'def _will_reset(self)' description is wrong in the wiki
- Can't install on macOS 12.5
- update to gym v26
- ValueError: ROM header zero fill bytes are not zero. HOT 1
- Failed to install 'nes-py' HOT 5
- Improperly formatted ROMs
- It seems that render() works even inside thread. HOT 1
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 nes-py.