Closed koegl closed 2 years ago
OSError: libminc2.dylib: cannot open shared object file: No such file or directory
You do not have minc-toolkit-v2 installed and properly configuring by sourcing its config file.
Closing for now as @gdevenyi's solution is almost certainly correct in this instance.
Thanks for your answer. But could you help me set it up correctly then?
Becaue when I source the .sh file with . /opt/minc/1.9.18/minc-toolkit-config.sh
all the commands like 'register', 'mincinfo' etc. work
Please provide a complete reproducible example of all steps you take and what is happening then.
Also, after sourcing the MINC toolkit command, what is the value of $LD_LIBRARY_PATH and does libminc2.so exist in that path? If not, maybe you've compiled the MINC toolkit without shared libraries?
Also, after sourcing the MINC toolkit command, what is the value of $LD_LIBRARY_PATH and does libminc2.so exist in that path? If not, maybe you've compiled the MINC toolkit without shared libraries?
echo $LD_LIBRARY_PATH
returns this:
/opt/minc/1.9.18/lib:/opt/minc/1.9.18/lib/InsightToolkit
and the path to libminc2.so is:
/opt/minc/1.9.18/lib/libminc2.so
Could you run both
$ ldd /opt/minc/1.9.18/lib/libminc2.so
and
$ python3 -c 'from ctypes import cdll; cdll.LoadLibrary("/opt/minc/1.9.18/lib/libminc2.so")'
and post any output? Thanks.
When running this line (as shown in the example)
from pyminc.volumes.factory import *
I get the following error:
I am using Ubuntu 18.04 running in a virtual box Python 3.6.9 I installed pyminc with
pip3 install pyminc
Thanks for your help in advance