scipopt / scip

SCIP - Solving Constraint Integer Programs
Other
366 stars 63 forks source link

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

Closed MoonieC closed 7 months ago

MoonieC commented 7 months ago

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 commented 7 months ago

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.