cvxpy: Failure using SCS solver
I installed cvxpy via pip but when I try to use it I get the following error:
----------------------------------------------------------------------------
SCS v1.1.7 - Splitting Conic Solver
(c) Brendan O'Donoghue, Stanford University, 2012-2015
----------------------------------------------------------------------------
Lin-sys: sparse-direct, nnz in A = 65496833
eps = 1.00e-03, alpha = 1.50, max_iters = 2500, normalize = 1, scale = 1.00
Variables n = 43056376, constraints m = 44160356
Cones: primal zero / dual free vars: 21524924
linear vars: 662388
soc vars: 662388, soc blks: 220796
sd vars: 21310656, sd blks: 1
FATAL: Cannot solve SDPs with > 2x2 matrices without linked blas+lapack libraries
Edit scs.mk to point to blas+lapack libray locations
*** Error in `python': free(): invalid pointer: 0x00000000077c3620 ***
Aborted (core dumped)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 4
- Comments: 22 (1 by maintainers)
I encountered the same issue in Ubuntu 16.04 with Python 3, even with libblas.so/liblapack.so installed.
The silly mistake there is scs or cvxpy is installed via pip before blas/lapack been installed. So the unlinked scs wheel is cached.
So after blas/lapack installed,
pip install -I scswill still get the wheel from the pip cache folder. Disable the pip cache will solve the issue bypip install --no-cache-dir -I scs, since it will build scs from source to link with blas/lapack.Wish it will help any of you who may encounter the same issue.
pip install numpy --upgrade
For anyone who gets here from Google with the same issue on Travis as https://github.com/cvxgrp/cvxpy/issues/244#issuecomment-193470798 you can work around this problem by adding the following to your .travis.yml:
Same problem here. Installed cvxpy on Anaconda Anaconda 2.3.0. Then installed gccp via pip, but it gave “RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa”. Then installed gccp from source and I’m having this problem. Any tips?
@SteveDiamond I’m seeing this failure as well, with the
cvxgrpSCS packages:The specific error is:
and the SCS libraries seem to be linked correctly:
When you install SCS, it has to link against BLAS/LAPACK. Otherwise it can’t solve SDPs. You should look into the SCS installation instructions. The Anaconda packages for Mac and Linux take care of the linking, but in Windows you have to take care of it yourself.
On Mon, Jan 9, 2017 at 2:08 PM Alex Rubinsteyn notifications@github.com wrote: