Skip to content
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

ImportError: libscip.so.8.0: cannot open shared object file: No such file or directory #2294

Open
MMCMA opened this issue Nov 24, 2023 · 3 comments

Comments

@MMCMA
Copy link

MMCMA commented Nov 24, 2023

Describe the bug
Import of cvxpy fails

To Reproduce
import cvxpy as cp

Expected behavior
No error to be raised.

Details

    import cvxpy as cp
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/__init__.py", line 57, in <module>
    from cvxpy.problems.problem import Problem as Problem
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 38, in <module>
    from cvxpy.reductions import InverseData
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/reductions/__init__.py", line 24, in <module>
    from cvxpy.reductions.dcp2cone.dcp2cone import Dcp2Cone
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/reductions/dcp2cone/dcp2cone.py", line 24, in <module>
    from cvxpy.reductions.dcp2cone.canonicalizers import CANON_METHODS as cone_canon_methods
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/reductions/dcp2cone/canonicalizers/__init__.py", line                                                  44, in <module>
    from cvxpy.reductions.dcp2cone.canonicalizers.suppfunc_canon import (
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/reductions/dcp2cone/canonicalizers/suppfunc_canon.py",                                                  line 5, in <module>
    from cvxpy.reductions.solvers.conic_solvers.scs_conif import (
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/__init__.py", line 31                                                 , in <module>
    from .scip_conif import SCIP
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/scip_conif.py", line                                                  38, in <module>
    from pyscipopt.scip import Model as ScipModel
  File "/opt/conda/envs/py310/lib/python3.10/site-packages/pyscipopt/__init__.py", line 11, in <module>
    from pyscipopt.scip      import Model
ImportError: libscip.so.8.0: cannot open shared object file: No such file or directory

Version

  • python : 3.10.13.final.0
  • OS : Linux
  • OS-release : 5.15.0-79-generic
  • CVXPY Version: 1.41

Additional context
I created a new docker image with mamba / conda-forge and the new build fails, same build was running last week without any issues. Not sure which dependency drives this issue.

@SteveDiamond
Copy link
Collaborator

The issue is with the latest pyscipopt release (interface to SCIP, not part of cvxpy)

@MMCMA
Copy link
Author

MMCMA commented Nov 24, 2023

I don't see any recent releases in SCIP - do I miss something?

@MMCMA
Copy link
Author

MMCMA commented Nov 25, 2023

I can confirm, setting the SCIP version to 8.0.4 fixes the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants