-
Notifications
You must be signed in to change notification settings - Fork 13
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
Issue Installing cbc from coin-or-tools/coinor on Apple Silicon (M2 Pro) #91
Comments
Found this issue which I think is related... coin-or/Cbc#529 |
coin-or/Cbc#529 doesn't seem to be the issue this time. It seems MUMPS is successfully downloaded, but there is an error in the build process.
I've never seen that error before, but Googling turned out some references to it. Unfortunately, I was not able to replicate this issue. The package installed on my M2-based Mac without issues. So I'm really not sure where to start debugging it. Installing Cbc with coinbrew from source is straightforward, though, so if you can't figure this out, you would always just use coinbrew. |
MacOS: Sonoma 14.1.1 The same issue happens on my M1 chip MacBook Pro when I tried to install cbc solver for my pyomo package. I updated command line tools and Xcode(required when first running this command) as well as Brew and then ran this command again, which gave the following
Or could you give the script to download using coinbrew? Thanks very much! |
This seems to be an issue with the Line 64 in fd9ace4
If you know how ti edit recipes, you could try modifying to get rid of that option. But @dpo is the maintainer of that recipe so I defer to him. Installing Cbc using coinbrew is straightforward. Did you try to recipe in the Cbc |
Thanks for your information. It seems I solved this problem but another problem occurred. I tried both methods and seem to succeeded in two. But cbc solver just doesn't work in my vscode or Jupyter notebook when I try to use is in pyomo code like below:
The error message is always something like I have tried removing/ redownloading or updating the relevant packages, created a new anaconda environment but none of this works. Still whether now sure whether it's due to my Mac OS version or conflict version of packages. Now I can only run the solver on google colab by running a cell like below:
Still trying to run cbc locally :( |
Since I believe Pyomo comunicates with Cbc through file IO, it should be relatively easy to capture the MPS file that it is passing to Cbc and replicate the failure outside of Pyomo. If you can indeed replicate by calling Cbc on the commend line with a flat file, then this can just be reported to Cbc. In any case, this will give you a lot of information about what is going on. If you step through in a debugger, you should be able to capture the full command line being passed to Cbc, along with the input file and this will tell you exactly what is going on. So for anyone else who might find this issue, what was the fix for your original problem? |
In order to quick fix like @tkralphs suggested. Edit
|
The text was updated successfully, but these errors were encountered: