-
Notifications
You must be signed in to change notification settings - Fork 69
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
Installation fails for Apple M3 - ImportError: symbol not found in flat namespace #193
Comments
I met the same problem, and I have resolved it using the methods shared by neumeyerx in the following post: Closed Issue Basically, I just did the following: git clone https://github.com/coin-or/CyLP.git
cd CyLP
pip install -e . and now I can import 'CyClpSimplex'. |
Thanks, this did it for me! |
I looked into this a little and it seems that for some reason, the wheels produced for Mac by cibuildwheel do not include the Cbc library and other dependent libraries, which are obviously needed. On Linux, the shared libraries are packaged in the wheel and installed in a directory
But the Mac wheels don't seem to include the libraries or have them as dependencies.
On the other hand, when using Cbc installed by homebrew and building CyLP from source, this isn't the case.
@mkoeppe I am cc'ing you in case you know anything. I have a vague recollection that there was something that needed to be done to package the libraries in the wheel on Linux, but it's a bit strange that the libraries are not there in the wheel for Mac, since the whole package is then obviously useless. |
I guess this PR is related to pypa/cibuildwheel#1691. It seems the only solution is probably to build the wheels on a machine running Apple Silicon. For now, we should probably just not publish these wheels, since they don't work. |
I have deleted the wheels for arm64 in both the release assets and on Pypi, I also updated the documentation. I'm going to close this issue. |
Hi,
I'm trying to install
cvxpy
with CBC solver support (which usescylp
in the background) for my new Mac M3. Installation commands go through fine, but when importing stuff I get the following error:Any idea what's happening here? Thanks in advance.
The text was updated successfully, but these errors were encountered: