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

PyScipOpt references old Scip version. Problem at import of pyscipopt #944

Open
windgaetter opened this issue Jan 14, 2025 · 7 comments
Open

Comments

@windgaetter
Copy link

Describe the bug
Since the last Scip update, PyScipOpt references the wrong libscip version. This results in an error when importing pyscipopt. Currently conda automatically installs Scip 9.2 and PyScipOpt 5.2.1

To Reproduce
Create conda environment and install pyscipopt from conda-forge. Try loading pyscipopt

Expected behavior
I would have expected, that the version is automatically updated or the referencing scip version fixed.

Screenshots

import pyscipopt
Traceback (most recent call last):
File "", line 1, in
File "/home/wind_lu/.conda/envs/test_env/lib/python3.12/site-packages/pyscipopt/init.py", line 11, in
from pyscipopt.scip import Model
ImportError: libscip.so.9.1: cannot open shared object file: No such file or directory

System

  • OS: Ubuntu
  • 22.04
  • Scip 9.2
  • conda-forge

Additional context

@Joao-Dionisio
Copy link
Collaborator

Hey @windgaetter, thanks for letting us know. In the meantime, can you try pip install pyscipopt and see if this works?

@windgaetter
Copy link
Author

That works for me. No error when I try to import it.

We use PyScipOpt in one of our conda packages. So,when you have that fix ready, we will be happy to use it again !

@windgaetter
Copy link
Author

Hi. I was wondering if there are any news when there will be a new conda-forge version of pyscipopt, that could fix this issue here ?

@Joao-Dionisio
Copy link
Collaborator

Hey @windgaetter, sorry for keeping you hanging. We suspect this is because we haven't released in a while. We're working on a new release, which should come out in the coming days

@Joao-Dionisio
Copy link
Collaborator

Hey @windgaetter! We just released. Can you please let us know if your problem was fixed?

@windgaetter
Copy link
Author

windgaetter commented Feb 10, 2025

@Joao-Dionisio Thanks for the new update. We can update to that new version, but run into the following: We run into the warning

UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1

when loading the Model class.

Interestingly, in our conda environment, PyScipOpt is installed in conjuction with Scip 9.2.1. So the warning pops up a bit unexpected. We have this issue in both our remote pipelines as well as locally.

Also

import pyscipopt
m = pyscipopt.Model()
m.version()

outputs version 9.0.2 instead of 9.2.1 .

@Joao-Dionisio
Copy link
Collaborator

Thank you, @windgaetter, glad to hear that it's at least running now. This warning also showed up for other people (#951), maybe it's a problem with the linking we're doing. We'll look into it this week.

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