-
Notifications
You must be signed in to change notification settings - Fork 238
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
Unable to load HSL solvers for IPOPT on M1 Mac #1494
Comments
@Robbybp , @andrewlee94 suggested I ask for your input. |
On my computer with an M1 processor, I added these lines to the
You can try running these in your terminal. |
@mollydougher can you try running the following commands in the same environment where you encountered the error and paste the output?
|
@mollydougher How did you obtain Ipopt? Is this compiled from source, from |
Molly is trying to use get extensions on an Apple M1 machine. |
@Robbybp I used |
@lbianchi-lbl I am getting a new error now.
|
@adowling2 After running those lines in my terminal, and then trying to solve with
I also updated my
|
@mollydougher Thanks for running those checks. Could you post the contents of your |
|
One more piece of information (from @adowling2):
|
This indicates that you're pulling down the x86-64 binaries, which is odd. Can you run |
|
How about the following Python script: from pyomo.common.downloader import FileDownloader
import platform
print(FileDownloader.get_sysinfo())
print(platform.machine()) |
I can't run this script, I get: |
Typo. Should be: from pyomo.common.download import FileDownloader
import platform
print(FileDownloader.get_sysinfo())
print(platform.machine()) |
|
Any chance @mollydougher accidentally installed x86 version of Python (running in emulation mode) on her M1 Mac? |
That would be my best guess. Although I would have expected/hoped that Python (from conda, I assume?) would not just silently run in emulation mode... @mollydougher Can you confirm where you downloaded/installed Python from? Out of curiosity, any reason you're not using your system's built-in Python? (assuming you're not) |
I am pretty sure I am using my system's built-in Python. I do not remember downloading it from anywhere. I installed anaconda, though I am not sure if that would be related to this issue. |
What does |
|
Because this is a conda environment, this might be Python from conda. I would guess that this is the case, as I don't think your built-in Python would have the wrong architecture (could be wrong!). Can you run |
|
As far as I can tell, this is an x86-64 version of Conda. I would recommend you create a new virtual environment from your system python:
You could also just re-install an ARM version of conda, but that might override your current installation. |
Thank you @Robbybp for your help. This allows me to run a simple python script and solve a pyomo model with
|
Glad that worked. I'll close this issue as I think the original problem has been resolved. If you continue having trouble installing dependencies, open an issue in the prommis repository. |
I am trying to get IPOPT with the HSL solvers on my Mac (M1 chip), but the library for the HSL solvers is missing. If I try to specify an HSL solver like
ma27
, I get the following:The text was updated successfully, but these errors were encountered: