-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
Scons syntax error during brew installation #477
Comments
It's possible that this has to do with SCons 3.0.0 (finally) supporting Python 3. Can you tell what version of SCons is installed, and what version of Python? |
This has been noted on the official SCons Twitter: https://twitter.com/SConsProject/status/910235501269061632 |
Thanks @bryanwweber for figuring this out. Could you please guide me through how I can fix this issue? I am trying with "brew edit cantera" and it has not been any luck. |
You need to make sure that SCons 2.5.1 is installed by brew, but I'm not sure how to do that. What version of SCons do you have installed ( |
And yes. I installed Scons through Homebrew and the version is 3.0.0. And although I did not intend to build the Python3 version, when I "brew install cantera --with-matlab...." without "--with-python3", the python 3 was automatically added anyway. I don't know whether this has forced Scons to use Python3 instead of Python2. I have Python2 installed and "which python" returns the brew installed python 2.7.14. |
What do you mean the python 3 was added automatically? The configuration you posted shows that |
OK. See the following output:
Two things: |
By the way, a recent update on Homebrew states that the python formula no longer shadows the system copy of Python and by default must be called as python2. This is mentioned in the caveats section when you install python from Homebrew:
With this change, the tutorial on macOS-Cantera-MATLAB seems to be obsolete. Since Homebrew will not overwrite the link for python, you can no longer change the default python from "/usr/bin/python" to "/usr/local/bin/python". Instead, in order to call Homebrew python, you have to "export PATH="/usr/local/opt/python/libexec/bin:$PATH" indicated in the caveats. I am not sure whether this is related to the installation issue I have. Just want to give all the information I have so far. Now when I do "which python", it returns:
|
Hi @bryanwweber , I wonder whether you know how to add This may be the easiest solution at this moment, as I cannot really get Scons 2.5.1 to work with Homebrew. The download link is not even working on Scons website. |
Unfortunately, I don't have any experience with the Homebrew recipes. @speth will have to help out 😄 Sorry! Your other option is to build from the source, which is all that Homebrew is doing anyways in this case. Follow the instructions starting here: http://cantera.org/docs/sphinx/html/compiling/installation-reqs.html#os-x-macos but rather than installing scons with Homebrew, install it with |
Print statements are only the beginning of getting Cantera's build scripts to work with SCons 3.0. The workaround for the time being will certainly need to be building from source with an older version of SCons, not using Homebrew. |
Thanks for the help @bryanwweber @speth . Yeah I have tried |
Cantera version
2.3.0
Operating System
macOS Sierra Version 10.12.6
Python/MATLAB version
MATLAB
I was following the official installation instruction of Cantera/macOS/MATLAB. When I executed the command "brew install cantera --without-test --with-matlab=/Applications/MATLAB_R2016a.app/", it outputs:
It seems that Scons is not able to read the SConstruct file. I did some research and could not figure out why. Any experience regarding this issue?
The text was updated successfully, but these errors were encountered: