HiGHS
HiGHS copied to clipboard
HiGHS Solver Installation issue (__ZN5Highs10clearModelEv) not found
Hello,
I am trying to install highspy in order to run the PyPSA package.
I am receiving: highs_bindings.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (__ZN5Highs10clearModelEv)
I have tried uninstalling and installing it, but still, nothing works. Highspy is package 1.5.3 and I am running on Intel macOS Monterey
This may be related to #1328
unfortunately I have the same error: lib/python3.9/site-packages/highspy/highs_bindings.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '__ZN5Highs10clearModelEv'
I have a M1 MacBook with Ventura but Python is running as Intel.
Are there any solutions?
@galabovaa is working on this, but it's hard when things move underneath her
I also have an M1 mac and I am receiving the same error with python 3.9 and python 3.10
Same issue here on intel mac with Python 3.10
What happens if you 'pip install highspy'?
Install works fine. The error appears on import highspy
. I've tried both 1.5.3 and 1.5.2
kylestahl@NADQA0VMD6MOSX ~ % pip install highspy
Collecting highspy
Using cached highspy-1.5.3-cp310-cp310-macosx_10_9_x86_64.whl (266 kB)
Installing collected packages: highspy
Successfully installed highspy-1.5.3
kylestahl@NADQA0VMD6MOSX ~ % python -c "import highspy"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/kylestahl/anaconda3/lib/python3.10/site-packages/highspy/__init__.py", line 1, in <module>
from .highs import (
File "/Users/kylestahl/anaconda3/lib/python3.10/site-packages/highspy/highs.py", line 1, in <module>
from .highs_bindings import (
ImportError: dlopen(/Users/kylestahl/anaconda3/lib/python3.10/site-packages/highspy/highs_bindings.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '__ZN5Highs10clearModelEv'
kylestahl@NADQA0VMD6MOSX ~ %
Thank you, apologies that this is taking so long. We are almost ready with the new python build and will update highspy asap.
Adding an update here. I've tested Highs one 3 M1 MacBook's and never received this error. Only on an intel Mac. Not saying that is the root cause, just interesting, hope this helps.
Indeed, it is an Intel mac issue. I used to have one, but I upgraded to M1 so at the moment I have no way of testing.
We have just pushed the latest pre-release version 1.7.1.dev1 to PyPi, would you please check if this works for you, on Intel MacOS?
Works for me with 1.7.1.dev1. Thanks!