problem: how to install in Mac M1
Hello, I have just met some problems in running the install.sh in m1 Mac. when run 'make' in the dependencies folder, it comes with an AttributeError: 'module' object has no attribute 'getoutput', could you tell me what's the problem?
To be honest, I have never tested the Macbook version myself, since I don't have one... Perhaps @cbhua may know more about it?
thank you very much!
Hello, thanks for rising the issue. This error is mostly a problem with your Python, maybe the install, maybe the version. Simply try import subprocess; subprocess.getoutput('ls /bin/ls') to see if the Python environment works in a proper way.
In Python official doc they say this method support POSIC OS, so in macOS it theoretically should work. And I tested it works in my laptop.
This refer may help: https://docs.python.org/3/library/subprocess.html.
Same problem here...
I triple checked, and all dependencies are installed.
@cbhua @yellowpeachw , did you find a solution?
MacBook-Air ~ % cd arcsim MacBook-Air arcsim % sudo chmod +x install.sh && sudo ./install.sh
Password: Operating system: Darwin WARNING: you firstly may need to install the necessary packages for your OS as described in the INSTALL file / install.sh script! Running make on dependencies folder. Grab a cup of coffee, this will take a while. cd jsoncpp && scons platform=linux-gcc /bin/sh: scons: command not found make: *** [lib/libjson.a] Error 127 ERROR: Make error on dependencies occurred. Exiting... MacBook-Air arcsim %
On a Mac you can use homebrew to install scons:
brew install scons
That will get you past this error, but many many more after that. I'm not sure it will be possible to get this code to build on a Mac without a massive effort.
We haven't used this in a while, but as you mentioned @charles-owen it may be a lengthy process given the differences in repos between Mac and Linux (ps: also M1 Macs will most probably have slightly different requirements). If you find a way to make it work, feel free to contribute :)