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

problem: how to install in Mac M1 #2

Open
taoningxiao opened this issue Jul 21, 2022 · 6 comments
Open

problem: how to install in Mac M1 #2

taoningxiao opened this issue Jul 21, 2022 · 6 comments

Comments

@taoningxiao
Copy link

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?

@fedebotu
Copy link
Member

To be honest, I have never tested the Macbook version myself, since I don't have one...
Perhaps @cbhua may know more about it?

@taoningxiao
Copy link
Author

thank you very much!

@cbhua
Copy link
Member

cbhua commented Jul 23, 2022

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.

@alelordelo
Copy link

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 %

@charles-owen
Copy link

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.

@fedebotu
Copy link
Member

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants