-
Notifications
You must be signed in to change notification settings - Fork 42
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
Error installing CoinUtils on Mac M1 #151
Comments
I would be happy to try to help someone debug this, but there's not a lot I can do without access to an M1-based machine. As mentioned in my previous comments, I doubt this will cause any problems in practice, so you can always disable the test. I'm not sure if you can do this from the command line, but if nothing else, you can do |
Thank you for the reply @tkralphs. I commented out the line mentioned in your previous comments. CoinUtils successfully installed, however, I encountered a new error during install of CLP. I don't quite understand what this is trying to tell me, but I think it may be a compilation error due to too many errors. The function __builtin_ia32_emms() seems to be the culprit which based on reading other posts, may be resulting in incompatibility with non-intel machines. Before including the current error output, here are the exact steps I took to resolve the initial error I reported for anyone that comes across it: In the PyCharm terminal run: brew tap coin-or-tools/coinor
Go back to the PyCharm terminal and run: brew install coin-or-tools/coinor/cbc Unfortunately, now I get the following error when installing CLP :(
|
This would seem to be the same problem as reported here: coin-or/Clp#126. It has been fixed and there is a new release, but I guess the homebrew recipe is still using a slightly outdated release and needs to be updated. Unfortunately, I don't have access to my OS X box until Monday. You can fix it yourself if you want to venture back into editing the recipe by hand. Just change 1.17.3 to 1.17.6 in |
Thank you again for your quick response @tkralphs . This worked perfectly after changing the recipe for clp to the most up to date version. Sorry I didn't notice that issue earlier before writing here. Thanks again for this excellent tool. Look forward to sharing our insights using this framework in the health care setting with the broader community! |
No problem, glad it worked out! While you're at it, it wouldn't hurt to update Cbc and the other dependencies (Cgl, Osi, CoinUtils) to their latest releases just as you did with Clp. If you're feeling really adventurous, you can submit a Pull Request to update the recipes :). If that is a bridge too far, no worries, I will get to it on Monday. |
1. Updated homepage, url, and head to refer to GitHub rather than coin-or.org 2. Updated version reference to most recent (2.10.5) 3. Updated sha256 for appropriate version (pending) Changes related to the issue discussed at coin-or/CoinUtils#151
1. Updated homepage, url, and head to refer to GitHub rather than coin-or.org 2. Updated version reference to most recent (2.10.5) 3. Updated sha256 for appropriate version (pending) Changes related to the issue discussed at coin-or/CoinUtils#151
1. Updated homepage, url, and head to refer to GitHub rather than coin-or.org 2. Updated version reference to most recent (1.17.6) 3. Updated sha256 for appropriate version (pending) Changes related to the issue discussed at coin-or/CoinUtils#151
1. Updated homepage, url, and head to refer to GitHub rather than coin-or.org 2. Updated version reference to most recent (0.60.3) 3. Updated sha256 for appropriate version (pending) Changes related to the issue discussed at coin-or/CoinUtils#151
1. Updated homepage, url, and head to refer to GitHub rather than coin-or.org 2. Updated version reference to most recent (2.11.4) 3. Updated sha256 for appropriate version (pending) Changes related to the issue discussed at coin-or/CoinUtils#151
1. Updated homepage, url, and head to refer to GitHub rather than coin-or.org 2. Updated version references to most recent (as of 3/6/2021) 3. Updated sha256 checksums for appropriate versions 4. Commented out "make" "test" as described at coin-or/CoinUtils#151 (comment) to bypass assertion error Changes were related to the issue discussed at coin-or/CoinUtils#151 Successfully compiled without error when "brew tap coin-or-tools/coinor" then "brew install coin-or-tools/coinor/cbc" was run within PyCharm terminal (community version 2020.3) running Python 3.9 (installed via homebrew version 3.0.4-50) on a 2020 MacBook Air with an M1 Apple Silicon chip running macOS Big Sur (version 11.2.2) and XCode version 12.4
Thank you again for your patience as I am new to the compilation process. I'm also new to Git, but hopefully I didn't mess things up too much. See my pull request with these updates at coin-or-tools/homebrew-coinor#63. It's the least I could do for all your help. Do you recommend any good resources for learning more about constraint and linear programming optimization? Please fell free to reach out if you ever have an interest in collaborating on projects within healthcare, I find this a fascinating field. |
I would absolutely be interested in collaborating on projects in the healthcare space. Let's connect off-line and we could discuss that plus resources for learning more about optimization. |
When installing coin-or-tools/coinor/cbc via homebrew within PyCharm (community version 2020.3) running Python 3.9 on a 2020 MacBook Air with an M1 Apple Silicon chip running macOS Big Sur (version 11.2.2), I get the assertion error included below while running make test on CoinPackedVector. This has been reported on the homebrew-coinor GitHub previously (coin-or-tools/homebrew-coinor#62), however the problem really seems to be with CoinUtils, so re-posting here. Hope someone could help with this. Really interested in using this for healthcare applications.
The text was updated successfully, but these errors were encountered: