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 #73

Closed
MoonieC opened this issue Nov 22, 2023 · 1 comment

Comments

@MoonieC
Copy link

MoonieC commented Nov 22, 2023

I met this problem when I am running my code, I installed scip 8.1.0

Traceback (most recent call last):
File "/home/m1/Downloads/rl2branch-master/04_train_il.py", line 132, in
from utilities import log, pad_tensor, GraphDataset, Scheduler
File "/home/m1/Downloads/rl2branch-master/utilities.py", line 4, in
import ecole
File "/usr/local/anaconda3/envs/MILPenv/lib/python3.9/site-packages/ecole/init.py", line 3, in
from ecole.core import RandomGenerator, seed, spawn_random_generator, MarkovError, Default
ImportError: libscip.so.8.0: cannot open shared object file: No such file or directory

and I got this when looking for the file "libscip.so"
image

Is this problem due to I have somehow install both 7.0.1 in /home/m1/Downloads and 8.1.0 anaconda environment?

How can I solve this?

@MoonieC
Copy link
Author

MoonieC commented Nov 22, 2023

Solved.

This is due to these files do not have symbolic links. To solve this, run

sudo ls libscip.so.*

to check the files

sudo ln -sf libscip.so.8.1.0.0 libscip.so.8.1

This establishes the sumbolic link between these two files, and then connect other files accordingly.

@MoonieC MoonieC closed this as completed Nov 22, 2023
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

1 participant