I was trying to copy data from an us-west-2 S3 bucket to an us-east-2 S3 bucket with --solve parameter

skyplane cp s3://source s3://dest -r --solve

This throws the following error. I manually installed cvxopt before this step as skyplane was complaining about it.

│ /Users/dimuthu/code/mft-evaluation/skyplane/venv/lib/python3.10/site-packages/cvxpy/problems/pro │
│ blem.py:771 in _find_candidate_solvers                                                           │
│                                                                                                  │
│    768 │   │   │   │   if slv_def.SOLVER_MAP_CONIC[s].MIP_CAPABLE]                               │
│    769 │   │   │   if not candidates['conic_solvers'] and \                                      │
│    770 │   │   │   │   │   not candidates['qp_solvers']:                                         │
│ ❱  771 │   │   │   │   raise error.SolverError(                                                  │
│    772 │   │   │   │   │   "Problem is mixed-integer, but candidate "                            │
│    773 │   │   │   │   │   "QP/Conic solvers (%s) are not MIP-capable." %                        │
│    774 │   │   │   │   │   (candidates['qp_solvers'] +                                           │
│


│ │     solver = 'GLPK'                                                                          │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
SolverError: Problem is mixed-integer, but candidate QP/Conic solvers ([]) are not MIP-capable.
0

Hi @DImuthuUpe! You need to have a MILP solver installed. Options include Gurobi or Coin-OR CBC. See installation instructions here: https://github.com/skyplane-project/skyplane/blob/main/scripts/install_cbc.sh

If you have conda installed:

$ conda install -y coin-or-cbc numpy pkg-config -c conda-forge
$ python -m pip install cylp
0

(please ignore the mistaken closed issue)

0

Thanks, @parasj. That fixed the issue. I will close this one

0
© 2022 pullanswer.com - All rights reserved.