cvxgrp / scs

Splitting Conic Solver
MIT License
553 stars 136 forks source link

Seg Fault on macOS with Python 3.8 #224

Closed skoudoro closed 2 years ago

skoudoro commented 2 years ago

Specifications

Description

I got a seg fault when I try to use SCS solver with the cvxpy. it seems that the wheels are not built for macOS 10.14 from the message. Not sure what is going on. thank you for your feedback.

Output

Encountered unexpected exception importing solver SCS:
ImportError('dlopen(/Users/koudoro/miniconda3/envs/dipy-env-38/lib/python3.8/site-packages/_scs_direct.cpython-38-darwin.so, 2): Symbol not found: _aligned_alloc\n  Referenced from: /Users/koudoro/miniconda3/envs/dipy-env-38/lib/python3.8/site-packages/scs/.dylibs/libgomp.1.dylib (which was built for Mac OS X 10.15)\n  Expected in: /usr/lib/libSystem.B.dylib\n in /Users/koudoro/miniconda3/envs/dipy-env-38/lib/python3.8/site-packages/scs/.dylibs/libgomp.1.dylib')
(CVXPY) Apr 27 11:18:19 PM: Encountered unexpected exception importing solver SCS:
ImportError('dlopen(/Users/koudoro/miniconda3/envs/dipy-env-38/lib/python3.8/site-packages/_scs_direct.cpython-38-darwin.so, 2): Symbol not found: _aligned_alloc\n  Referenced from: /Users/koudoro/miniconda3/envs/dipy-env-38/lib/python3.8/site-packages/scs/.dylibs/libgomp.1.dylib (which was built for Mac OS X 10.15)\n  Expected in: /usr/lib/libSystem.B.dylib\n in /Users/koudoro/miniconda3/envs/dipy-env-38/lib/python3.8/site-packages/scs/.dylibs/libgomp.1.dylib')
bodono commented 2 years ago

As far as I know I can't use github actions with anything earlier than Mac OS 10.15. It's probably best for you to rebuild / reinstall SCS from source.

skoudoro commented 2 years ago

Thank you for the feedback! ok, for now, I can close this issue and follow the path that you propose.

ps: where can I find the wheel builder routine?